fix for #1002
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user