Explorar o código

Fix part cloning

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
8fe67c11dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             }
         }