Skip to content

Commit

Permalink
fix: scale will be decrease on editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Feb 12, 2020
1 parent e5ebadd commit 0c59846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void OnSceneGUI()
ShapeModuleUI.s_GizmoColor.m_OptionalDarkColor = s_GizmoColor;

_particles
.Distinct()
.Select(x => new { canvas = x.canvas, ps = x.cachedParticleSystem, scale = x.scale })
.Where(x => x.ps && x.canvas)
.ToList()
Expand All @@ -267,7 +268,6 @@ void OnSceneGUI()
var hasChanged = trans.hasChanged;
var localScale = trans.localScale;
postAction = () => trans.localScale = localScale;
postAction = () => trans.hasChanged = hasChanged;
trans.localScale = Vector3.Scale(localScale, x.canvas.rootCanvas.transform.localScale * x.scale);
});

Expand Down

0 comments on commit 0c59846

Please sign in to comment.