Pārlūkot izejas kodu

fix back mesh creation

Jérôme Bousquié 5 gadi atpakaļ
vecāks
revīzija
d87fbbb6f2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 && this._expandable) {       // in case it's expanded
+        if (!this.mesh) {       // in case it's already expanded
             var mesh = new Mesh(this.name, this._scene);
             this.mesh = mesh;
         }