Skip to content

Commit

Permalink
fix: An exception in the OnSceneGUI caused the scale of the transform…
Browse files Browse the repository at this point in the history
…ation to change unintentionally
  • Loading branch information
mob-sakai committed Aug 11, 2020
1 parent b378099 commit 75413e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,14 @@ void OnSceneGUI()
trans.localScale = Vector3.Scale(localScale, x.canvas.rootCanvas.transform.localScale * x.scale);
});

foreach (var ui in _shapeModuleUIs)
ui.OnSceneViewGUI();
try
{
foreach (var ui in _shapeModuleUIs)
ui.OnSceneViewGUI();
}
catch
{
}

postAction();
ShapeModuleUI.s_GizmoColor.m_Color = origin;
Expand Down

0 comments on commit 75413e0

Please sign in to comment.