diff --git a/Assets/VRM/UniVRM/Editor/FirstPerson/VRMFirstPersonEditor.cs b/Assets/VRM/UniVRM/Editor/FirstPerson/VRMFirstPersonEditor.cs index de6699cba..0d5021a73 100644 --- a/Assets/VRM/UniVRM/Editor/FirstPerson/VRMFirstPersonEditor.cs +++ b/Assets/VRM/UniVRM/Editor/FirstPerson/VRMFirstPersonEditor.cs @@ -27,8 +27,9 @@ namespace VRM if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(component, "Changed FirstPerson"); + + component.FirstPersonOffset = head.worldToLocalMatrix.MultiplyPoint(worldOffset); } - component.FirstPersonOffset = head.worldToLocalMatrix.MultiplyPoint(worldOffset); } } }