@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.
- package/dist/{chunk-TVBWYIGY.js → chunk-SABZQFSA.js} +7 -3
- package/dist/chunk-SABZQFSA.js.map +1 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/systems/index.cjs +5 -1
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TVBWYIGY.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6153,6 +6153,10 @@ var _InstancedMeshSystem = class _InstancedMeshSystem {
|
|
|
6153
6153
|
this.loadingSignatures.delete(entityId);
|
|
6154
6154
|
this.modelMeshEntries.delete(entityId);
|
|
6155
6155
|
}
|
|
6156
|
+
if (instanceCount === 0) {
|
|
6157
|
+
this.geometrySignatures.set(entityId, geometrySignature);
|
|
6158
|
+
continue;
|
|
6159
|
+
}
|
|
6156
6160
|
if (comp.meshKind === "model") {
|
|
6157
6161
|
if (comp.modelPath && !this.loadingSignatures.has(entityId)) {
|
|
6158
6162
|
this.loadingSignatures.set(entityId, geometrySignature);
|
|
@@ -6237,7 +6241,7 @@ var _InstancedMeshSystem = class _InstancedMeshSystem {
|
|
|
6237
6241
|
}
|
|
6238
6242
|
continue;
|
|
6239
6243
|
}
|
|
6240
|
-
const count =
|
|
6244
|
+
const count = instanceCount;
|
|
6241
6245
|
const geometry = buildGeometry(comp);
|
|
6242
6246
|
const material = new THREE34__namespace.MeshStandardMaterial({ color: "#ffffff" });
|
|
6243
6247
|
const instancedMesh = new THREE34__namespace.InstancedMesh(geometry, material, count);
|