Skip to content

Commit

Permalink
fix: abnormal Mesh Bounds with Particle Trails
Browse files Browse the repository at this point in the history
Close #61
  • Loading branch information
mob-sakai committed Mar 3, 2020
1 parent 3f09395 commit 518a749
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Packages/UIParticle/Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ void UpdateMesh()
return;
}

// #61: When ParticleSystem.RenderMode=None, an error occurs
if (_renderer.renderMode == ParticleSystemRenderMode.None)
return;

Profiler.BeginSample("Make Matrix");
ParticleSystem.MainModule main = m_ParticleSystem.main;
scaleaMatrix = main.scalingMode == ParticleSystemScalingMode.Hierarchy
Expand Down

0 comments on commit 518a749

Please sign in to comment.