/// <summary>
/// Checks if the config for this TweakScale instance is valid. If not, logs it and returns false.
/// </summary>
/// <returns>True if the config is invalid, false otherwise.</returns>
private bool CheckForInvalidCfg()
{
if (ScaleFactors.Length != 0)
{
return(false);
}
if (_invalidCfg)
{
return(true);
}
_invalidCfg = true;
Tools.LogWf("{0}({1}) has no valid scale factors. This is probably caused by an invalid TweakScale configuration for the part.", part.name, part.partInfo.title);
Debug.Log("[TweakScale]" + this.ToString());
Debug.Log("[TweakScale]" + ScaleType.ToString());
return(true);
}