Skip to content

Commit

Permalink
fix: rotating the particle rect may cause out of bounds
Browse files Browse the repository at this point in the history
Close #55
  • Loading branch information
mob-sakai committed Feb 12, 2020
1 parent fe6d2ff commit 3439842
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Packages/UIParticle/Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ void UpdateMesh ()
s_Vertices [i] = matrix.MultiplyPoint3x4 (s_Vertices [i]);
}
_mesh.SetVertices (s_Vertices);
_mesh.RecalculateBounds();
s_Vertices.Clear ();
Profiler.EndSample ();
}
Expand Down

0 comments on commit 3439842

Please sign in to comment.