mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-09 23:34:56 +08:00
Fix incorrect instantiation of animator state behaviors
This commit is contained in:
parent
f0fa188d68
commit
96a453ae67
@ -170,7 +170,7 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ctor = original.GetType().GetConstructor(Type.EmptyTypes);
|
var ctor = original.GetType().GetConstructor(Type.EmptyTypes);
|
||||||
if (ctor == null || obj is ScriptableObject)
|
if (ctor == null || original is ScriptableObject)
|
||||||
{
|
{
|
||||||
obj = Object.Instantiate(original);
|
obj = Object.Instantiate(original);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user