[fix] fix broken material animations (again)

This commit is contained in:
bd_ 2022-12-01 10:07:51 -08:00
parent c37fc01e77
commit 762cf2dba2

View File

@ -244,9 +244,10 @@ namespace nadena.dev.modular_avatar.core.editor
case StateMachineBehaviour _:
break; // We want to clone these types
// Leave textures and script definitions alone
// Leave textures, materials, and script definitions alone
case Texture2D _:
case MonoScript _:
case Material _:
return original;
// Also avoid copying unknown scriptable objects.