fix: scale adjuster tool rotation is not updated appropriately (#1023)

Closes: #1003
This commit is contained in:
bd_ 2024-08-19 19:14:44 -07:00 committed by GitHub
parent 159865e6cd
commit a42295e0e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,6 +179,8 @@ namespace nadena.dev.modular_avatar.core.editor
} }
var handleSize = HandleUtility.GetHandleSize(Tools.handlePosition); var handleSize = HandleUtility.GetHandleSize(Tools.handlePosition);
_handleRotation = Tools.handleRotation;
EditorGUI.BeginChangeCheck(); EditorGUI.BeginChangeCheck();
_gizmoScale = Handles.ScaleHandle(_gizmoScale, Tools.handlePosition, _handleRotation, handleSize); _gizmoScale = Handles.ScaleHandle(_gizmoScale, Tools.handlePosition, _handleRotation, handleSize);
if (EditorGUI.EndChangeCheck()) if (EditorGUI.EndChangeCheck())