Explorar o código

fix in case buildMesh is called twice on fixed SPS

Jérôme Bousquié %!s(int64=5) %!d(string=hai) anos
pai
achega
0a3d65abbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }