[fix] fix broken material animations (again) (#129)

This commit is contained in:
bd_ 2022-12-01 10:14:08 -08:00 committed by GitHub
parent c37fc01e77
commit b06e27f3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.