From 8b09313939a93653fc683ada3a4d9db1b3c0f934 Mon Sep 17 00:00:00 2001 From: nekobako Date: Mon, 19 Aug 2024 16:26:19 +0900 Subject: [PATCH] fix: record prefab instance property modifications --- Editor/Inspector/ShapeChanger/AddShapePopup.cs | 2 ++ Editor/Inspector/ShapeChanger/ShapeChangerEditor.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Editor/Inspector/ShapeChanger/AddShapePopup.cs b/Editor/Inspector/ShapeChanger/AddShapePopup.cs index a9ac4882..746d7b88 100644 --- a/Editor/Inspector/ShapeChanger/AddShapePopup.cs +++ b/Editor/Inspector/ShapeChanger/AddShapePopup.cs @@ -82,6 +82,8 @@ namespace nadena.dev.modular_avatar.core.editor.ShapeChanger ChangeType = ShapeChangeType.Delete, Value = 100 }); + + PrefabUtility.RecordPrefabInstancePropertyModifications(changer); } public override void OnGUI(Rect rect) diff --git a/Editor/Inspector/ShapeChanger/ShapeChangerEditor.cs b/Editor/Inspector/ShapeChanger/ShapeChangerEditor.cs index 8451320e..1ddc7f6e 100644 --- a/Editor/Inspector/ShapeChanger/ShapeChangerEditor.cs +++ b/Editor/Inspector/ShapeChanger/ShapeChangerEditor.cs @@ -97,6 +97,8 @@ namespace nadena.dev.modular_avatar.core.editor.ShapeChanger ChangeType = ShapeChangeType.Delete, Value = 100 }); + + PrefabUtility.RecordPrefabInstancePropertyModifications(changer); } } } \ No newline at end of file