From 02aae32acbb863cf14450feaf4b415a75361a27e Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Tue, 14 Feb 2023 23:34:22 +0900 Subject: [PATCH] rename --- .../VRM10/Editor/EditorTool/VRM10LookAtEditorTool.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/VRM10/Editor/EditorTool/VRM10LookAtEditorTool.cs b/Assets/VRM10/Editor/EditorTool/VRM10LookAtEditorTool.cs index 800b081d1..013e85b77 100644 --- a/Assets/VRM10/Editor/EditorTool/VRM10LookAtEditorTool.cs +++ b/Assets/VRM10/Editor/EditorTool/VRM10LookAtEditorTool.cs @@ -69,18 +69,18 @@ namespace UniVRM10 { EditorGUI.BeginChangeCheck(); - var worldOffset = head.localToWorldMatrix.MultiplyPoint(root.Vrm.LookAt.OffsetFromHead); - worldOffset = Handles.PositionHandle(worldOffset, head.rotation); + var eyeWorldPosition = head.localToWorldMatrix.MultiplyPoint(root.Vrm.LookAt.OffsetFromHead); + eyeWorldPosition = Handles.PositionHandle(eyeWorldPosition, head.rotation); - Handles.DrawDottedLine(head.position, worldOffset, 5); + Handles.DrawDottedLine(head.position, eyeWorldPosition, 5); Handles.SphereHandleCap(0, head.position, Quaternion.identity, 0.02f, Event.current.type); - Handles.SphereHandleCap(0, worldOffset, Quaternion.identity, 0.02f, Event.current.type); + Handles.SphereHandleCap(0, eyeWorldPosition, Quaternion.identity, 0.02f, Event.current.type); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(root.Vrm, "LookAt.OffsetFromHead"); - root.Vrm.LookAt.OffsetFromHead = head.worldToLocalMatrix.MultiplyPoint(worldOffset); + root.Vrm.LookAt.OffsetFromHead = head.worldToLocalMatrix.MultiplyPoint(eyeWorldPosition); } }