浏览代码

Fix part cloning

David Catuhe 5 年之前
父节点
当前提交
8fe67c11dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Particles/particleSystem.ts

+ 1 - 1
src/Particles/particleSystem.ts

@@ -2090,7 +2090,7 @@ export class ParticleSystem extends BaseParticleSystem implements IDisposable, I
                 ctx.drawImage((<unknown>this.particleTexture as DynamicTexture).getContext().canvas, 0, 0);
                 (<unknown>result.particleTexture as DynamicTexture).update();
             } else {
-                result.particleTexture = new Texture(this.particleTexture.url, this._scene);
+                result.particleTexture = new Texture(this.particleTexture.url || this.particleTexture.name, this._scene);
             }
         }