From 8fed1c813bae6146b4bbe7d87ee53a3951b61d6d Mon Sep 17 00:00:00 2001 From: lilxyzw Date: Tue, 24 Sep 2024 15:27:31 +0900 Subject: [PATCH] fix: cloned AnimatorController is not registered in ObjectRegistry #1205 --- Editor/Animation/AnimationUtil.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Editor/Animation/AnimationUtil.cs b/Editor/Animation/AnimationUtil.cs index 61e09659..aa026548 100644 --- a/Editor/Animation/AnimationUtil.cs +++ b/Editor/Animation/AnimationUtil.cs @@ -42,7 +42,9 @@ namespace nadena.dev.modular_avatar.animation 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)