@relu-interactives/spatial-ecs 0.2.8 → 0.2.9

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.
@@ -2413,6 +2413,10 @@ var _InstancedMeshSystem = class _InstancedMeshSystem {
2413
2413
  this.loadingSignatures.delete(entityId);
2414
2414
  this.modelMeshEntries.delete(entityId);
2415
2415
  }
2416
+ if (instanceCount === 0) {
2417
+ this.geometrySignatures.set(entityId, geometrySignature);
2418
+ continue;
2419
+ }
2416
2420
  if (comp.meshKind === "model") {
2417
2421
  if (comp.modelPath && !this.loadingSignatures.has(entityId)) {
2418
2422
  this.loadingSignatures.set(entityId, geometrySignature);
@@ -2497,7 +2501,7 @@ var _InstancedMeshSystem = class _InstancedMeshSystem {
2497
2501
  }
2498
2502
  continue;
2499
2503
  }
2500
- const count = Math.max(1, instanceCount);
2504
+ const count = instanceCount;
2501
2505
  const geometry = buildGeometry(comp);
2502
2506
  const material = new THREE7.MeshStandardMaterial({ color: "#ffffff" });
2503
2507
  const instancedMesh = new THREE7.InstancedMesh(geometry, material, count);
@@ -3593,5 +3597,5 @@ __name(_VideoSystem, "VideoSystem");
3593
3597
  var VideoSystem = _VideoSystem;
3594
3598
 
3595
3599
  export { AnimationSystem, AudioSystem, Behaviour, CameraSyncSystem, EnvironmentSyncSystem, InputSystem, InstancedMeshSystem, KeyboardKeys, LightSyncSystem, MaterialSyncSystem, MeshGeometrySystem, ObjectVisibilitySystem, PhysicsSyncSystem, PostprocessingSyncSystem, RenderSystem, ScriptBehaviourSystem, TransformSyncSystem, VideoSystem };
3596
- //# sourceMappingURL=chunk-TVBWYIGY.js.map
3597
- //# sourceMappingURL=chunk-TVBWYIGY.js.map
3600
+ //# sourceMappingURL=chunk-SABZQFSA.js.map
3601
+ //# sourceMappingURL=chunk-SABZQFSA.js.map