fix: cloned AnimatorController is not registered in ObjectRegistry #1205

This commit is contained in:
lilxyzw 2024-09-24 15:27:31 +09:00
parent 51fedbd9b0
commit 8fed1c813b

View File

@ -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)