fix: cloned AnimatorController is not registered in ObjectRegistry #1205 (#1206)

This commit is contained in:
lilxyzw 2024-09-25 10:11:39 +09:00 committed by GitHub
parent 51fedbd9b0
commit 2826c27d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,9 @@ namespace nadena.dev.modular_avatar.animation
throw new Exception("Unknown RuntimeAnimatorContoller type " + controller.GetType()); throw new Exception("Unknown RuntimeAnimatorContoller type " + controller.GetType());
} }
return merger.Finish(); var clone = merger.Finish();
ObjectRegistry.RegisterReplacedObject(controller, clone);
return clone;
} }
internal static void CloneAllControllers(BuildContext context) internal static void CloneAllControllers(BuildContext context)