Bläddra i källkod

fix in case buildMesh is called twice on fixed SPS

Jérôme Bousquié 5 år sedan
förälder
incheckning
0a3d65abbe
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Particles/solidParticleSystem.ts

+ 1 - 1
src/Particles/solidParticleSystem.ts

@@ -189,7 +189,7 @@ export class SolidParticleSystem implements IDisposable {
         if (this._colors32.length > 0) {
             vertexData.set(this._colors32, VertexBuffer.ColorKind);
         }
-        if (!this.mesh) {       // in case it's expanded
+        if (!this.mesh && this._expandable) {       // in case it's expanded
             var mesh = new Mesh(this.name, this._scene);
             this.mesh = mesh;
         }