Przeglądaj źródła

Merge pull request #9257 from sebavan/master

Fix #9254
sebavan 4 lat temu
rodzic
commit
12e4fd0ce8
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/Particles/particleSystem.ts

+ 3 - 1
src/Particles/particleSystem.ts

@@ -2019,7 +2019,9 @@ export class ParticleSystem extends BaseParticleSystem implements IDisposable, I
         if (this.blendMode === ParticleSystem.BLENDMODE_MULTIPLYADD) {
             outparticles = this._render(ParticleSystem.BLENDMODE_MULTIPLY) + this._render(ParticleSystem.BLENDMODE_ADD);
         }
-        outparticles = this._render(this.blendMode);
+        else {
+            outparticles = this._render(this.blendMode);
+        }
 
         this._engine.unbindInstanceAttributes();
         this._engine.setAlphaMode(Constants.ALPHA_DISABLE);