David Catuhe 6 年 前
コミット
cb5fe436e3
2 ファイル変更2 行追加1 行削除
  1. 1 1
      src/Particles/particleSystem.ts
  2. 1 0
      src/Particles/subEmitter.ts

+ 1 - 1
src/Particles/particleSystem.ts

@@ -1911,7 +1911,7 @@ export class ParticleSystem extends BaseParticleSystem implements IDisposable, I
         var result = new ParticleSystem(name, this._capacity, this._scene, custom);
         result.customShader = program;
 
-        DeepCopier.DeepCopy(this, result, ["particles", "customShader", "noiseTexture"]);
+        DeepCopier.DeepCopy(this, result, ["particles", "customShader", "noiseTexture", "particleTexture", "onDisposeObservable"]);
 
         if (newEmitter === undefined) {
             newEmitter = this.emitter;

+ 1 - 0
src/Particles/subEmitter.ts

@@ -77,6 +77,7 @@ export class SubEmitter {
         var clone = new SubEmitter(this.particleSystem.clone("", emitter));
 
         // Clone properties
+        clone.particleSystem.name += "Clone";
         clone.type = this.type;
         clone.inheritDirection = this.inheritDirection;
         clone.inheritedVelocityAmount = this.inheritedVelocityAmount;