Skip to content

Commit

Permalink
fix: particle trails draw in wrong transform
Browse files Browse the repository at this point in the history
Close #145
  • Loading branch information
mob-sakai committed Feb 3, 2021
1 parent ba3b80d commit 17ce81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/UIParticleUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private static void BakeMesh(UIParticle particle)
var hash = currentPs.GetMaterialHash(true);
if (hash != 0)
{
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local && currentPs.trails.worldSpace
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
: matrix;

Expand Down

0 comments on commit 17ce81e

Please sign in to comment.