Skip to content

Commit

Permalink
fix: trails material uses sprite texture
Browse files Browse the repository at this point in the history
close #92
  • Loading branch information
mob-sakai committed Sep 2, 2020
1 parent 77ea2ae commit 9e65ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/UIParticle/Scripts/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static long GetMaterialHash(this ParticleSystem self, bool trail)

if (!mat) return 0;

var tex = self.GetTextureForSprite();
var tex = trail ? null : self.GetTextureForSprite();
return ((long) mat.GetHashCode() << 32) + (tex ? tex.GetHashCode() : 0);
}

Expand Down

0 comments on commit 9e65ee7

Please sign in to comment.