浏览代码

fix back mesh creation

Jérôme Bousquié 5 年之前
父节点
当前提交
d87fbbb6f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {
         if (this._colors32.length > 0) {
             vertexData.set(this._colors32, VertexBuffer.ColorKind);
             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);
             var mesh = new Mesh(this.name, this._scene);
             this.mesh = mesh;
             this.mesh = mesh;
         }
         }