@newkrok/three-particles 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1455,7 +1455,12 @@ var createParticleSystem = (config = DEFAULT_PARTICLE_SYSTEM_CONFIG, externalNow
1455
1455
  }
1456
1456
  destroyParticleSystem(particleSystem);
1457
1457
  };
1458
- const update = (cycleData) => updateParticleSystemInstance(instanceData, cycleData);
1458
+ const update = (cycleData) => {
1459
+ updateParticleSystemInstance(instanceData, cycleData);
1460
+ for (const instances of subEmitterInstancesMap.values()) {
1461
+ for (const sub of instances) sub.update(cycleData);
1462
+ }
1463
+ };
1459
1464
  return {
1460
1465
  instance: wrapper || particleSystem,
1461
1466
  resumeEmitter,