fix: Multiselecting sets all scales to the same value
parent
d5ce78ae5a
commit
13223b2d74
|
@ -260,9 +260,9 @@ namespace Coffee.UIExtensions
|
||||||
z.floatValue = y.floatValue = x.floatValue;
|
z.floatValue = y.floatValue = x.floatValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
x.floatValue = Mathf.Max(0.001f, x.floatValue);
|
if (x.floatValue < 0.001f) x.floatValue = 0.001f;
|
||||||
y.floatValue = Mathf.Max(0.001f, y.floatValue);
|
if (y.floatValue < 0.001f) y.floatValue = 0.001f;
|
||||||
z.floatValue = Mathf.Max(0.001f, z.floatValue);
|
if (z.floatValue < 0.001f) z.floatValue = 0.001f;
|
||||||
|
|
||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
showXyz = GUILayout.Toggle(showXyz, s_Content3D, EditorStyles.miniButton, GUILayout.Width(30));
|
showXyz = GUILayout.Toggle(showXyz, s_Content3D, EditorStyles.miniButton, GUILayout.Width(30));
|
||||||
|
|
Loading…
Reference in New Issue