Skip to content

Commit

Permalink
fix: Multiselecting sets all scales to the same value
Browse files Browse the repository at this point in the history
  • Loading branch information
ibragimov.i committed Feb 18, 2021
1 parent d5ce78a commit 13223b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/Editor/UIParticleEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ private static bool DrawFloatOrVector3Field(SerializedProperty sp, bool showXyz)
z.floatValue = y.floatValue = x.floatValue;
}

x.floatValue = Mathf.Max(0.001f, x.floatValue);
y.floatValue = Mathf.Max(0.001f, y.floatValue);
z.floatValue = Mathf.Max(0.001f, z.floatValue);
if (x.floatValue < 0.001f) x.floatValue = 0.001f;
if (y.floatValue < 0.001f) y.floatValue = 0.001f;
if (z.floatValue < 0.001f) z.floatValue = 0.001f;

EditorGUI.BeginChangeCheck();
showXyz = GUILayout.Toggle(showXyz, s_Content3D, EditorStyles.miniButton, GUILayout.Width(30));
Expand Down

0 comments on commit 13223b2

Please sign in to comment.