This commit is contained in:
Ruan Lucas
2023-06-08 11:52:00 -04:00
parent 311637616b
commit 0b8c06b149

View File

@@ -81,6 +81,7 @@ namespace FlaxEditor.Gizmo
: base(owner)
{
InitDrawing();
ModeChanged += ResetTranslationScale;
}
/// <summary>
@@ -326,6 +327,11 @@ namespace FlaxEditor.Gizmo
}
}
private void ResetTranslationScale()
{
_translationScaleSnapDelta.Normalize();
}
private void UpdateRotate(float dt)
{
float mouseDelta = _activeAxis == Axis.Y ? -Owner.MouseDelta.X : Owner.MouseDelta.X;