Skip to content

Commit

Permalink
dont die when vfx asset broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski committed May 2, 2024
1 parent 3c2dfe3 commit 035c682
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public void render (ParticleRenderer particleRenderer, MaterialModule materialMo

if (materialModule instanceof SpriteMaterialModule) {
TextureRegion textureRegion = ((SpriteMaterialModule)materialModule).getTextureRegion();
if (textureRegion == null) return;

U = textureRegion.getU();
U2 = textureRegion.getU2();
V = textureRegion.getV();
Expand Down

0 comments on commit 035c682

Please sign in to comment.