Skip to content

Commit a3da263

Browse files
committed
fixed animation settings validator
1 parent c0f8212 commit a3da263

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/FrameRecorder/Core/Engine/InputSettingsList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ public void ReplaceAt(int index, RecorderInputSetting input)
209209

210210
void ReleaseAt(int index)
211211
{
212-
bool isBinder = m_InputsSettingsAssets[index] is InputBinder;
213212
#if UNITY_EDITOR
213+
bool isBinder = m_InputsSettingsAssets[index] is InputBinder;
214214
if ( isBinder )
215215
SceneHook.UnregisterInputSettingObj(ownerRecorderSettingsAssetId, m_InputsSettings[index]);
216216
#endif

source/FrameRecorder/Recorders/AnimationRecorder/Editor/AnimationRecorderSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public override bool ValidityCheck( List<string> errors )
5959
ok = false;
6060
errors.Add("Invalid state!");
6161
}
62-
if (!inputsSettings.Cast<AnimationInputSettings>().Any(x => x != null && x.enabled))
62+
if (!inputsSettings.Cast<AnimationInputSettings>().Any(x => x != null && x.enabled && x.gameObject != null ))
6363
{
6464
ok = false;
65-
errors.Add("None of the input objects are enabled.");
65+
errors.Add("No input object set/enabled.");
6666
}
6767

6868
if ( string.IsNullOrEmpty(outputPath))

0 commit comments

Comments
 (0)