Easing nodes - Fixed going into a broken state when delay is 0

Numeric easing node - Fixed node not functioning at all
Event cycle node - Fixed node not functioning at all
This commit is contained in:
Robert committed 2022-08-27 12:12:47 +02:00
1 parent 6638eae126
commit cf58acc7d2
4 files changed
+23 -9

No files matched your search

@@ -121,9 +121,9 @@ internal class ScriptingService : IScriptingService
throw new ArtemisCoreException("Scripts must have exactly one constructor");
// Find the ScriptConfiguration parameter, it is required by the base constructor so its there for sure
ParameterInfo configurationParameter = constructors.First().GetParameters().First(p => value.GetType().IsAssignableFrom(p.ParameterType));
ParameterInfo? configurationParameter = constructors.First().GetParameters().FirstOrDefault(p => value.GetType().IsAssignableFrom(p.ParameterType));
if (configurationParameter.Name == null)
if (configurationParameter?.Name == null)
throw new ArtemisCoreException($"Couldn't find a valid constructor argument on {scriptType.Name} with type {value.GetType().Name}");
return new ConstructorArgument(configurationParameter.Name, value);
}