@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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MeshGeometrySystem, InstancedMeshSystem, EnvironmentSyncSystem, PostprocessingSyncSystem, LightSyncSystem, MaterialSyncSystem, PhysicsSyncSystem, AnimationSystem, AudioSystem, VideoSystem, CameraSyncSystem, TransformSyncSystem, ObjectVisibilitySystem, RenderSystem } from './chunk-
|
|
2
|
-
export { AnimationSystem, AudioSystem, Behaviour, CameraSyncSystem, EnvironmentSyncSystem, InputSystem, InstancedMeshSystem, KeyboardKeys, LightSyncSystem, MaterialSyncSystem, MeshGeometrySystem, ObjectVisibilitySystem, PhysicsSyncSystem, PostprocessingSyncSystem, RenderSystem, ScriptBehaviourSystem, TransformSyncSystem, VideoSystem } from './chunk-
|
|
1
|
+
import { MeshGeometrySystem, InstancedMeshSystem, EnvironmentSyncSystem, PostprocessingSyncSystem, LightSyncSystem, MaterialSyncSystem, PhysicsSyncSystem, AnimationSystem, AudioSystem, VideoSystem, CameraSyncSystem, TransformSyncSystem, ObjectVisibilitySystem, RenderSystem } from './chunk-SABZQFSA.js';
|
|
2
|
+
export { AnimationSystem, AudioSystem, Behaviour, CameraSyncSystem, EnvironmentSyncSystem, InputSystem, InstancedMeshSystem, KeyboardKeys, LightSyncSystem, MaterialSyncSystem, MeshGeometrySystem, ObjectVisibilitySystem, PhysicsSyncSystem, PostprocessingSyncSystem, RenderSystem, ScriptBehaviourSystem, TransformSyncSystem, VideoSystem } from './chunk-SABZQFSA.js';
|
|
3
3
|
import { registerDefaultFactories } from './chunk-LE6ARNYQ.js';
|
|
4
4
|
export { createAnimationComponent, createAudioComponent, createCameraComponent, createEntityTypeComponent, createEnvironmentComponent, createImageComponent, createImageTargetAnchorComponent, createImageTargetComponent, createInstanceSlotComponent, createInstancedMeshComponent, createLightComponent, createMaterialComponent, createMeshComponent, createMeshGeometryComponent, createModelComponent, createNameComponent, createObject3DRefComponent, createParentIdComponent, createPhysicsComponent, createPostprocessingComponent, createScriptComponent, createSelectableComponent, createSelectionTransformStateComponent, createSpriteComponent, createTransformComponent, createVideoComponent, registerDefaultComponentFactories, registerDefaultFactories } from './chunk-LE6ARNYQ.js';
|
|
5
5
|
import { ObjectManagementSystem, applyTransform } from './chunk-ODCWJHPS.js';
|
package/dist/systems/index.cjs
CHANGED
|
@@ -4276,6 +4276,10 @@ var _InstancedMeshSystem = class _InstancedMeshSystem {
|
|
|
4276
4276
|
this.loadingSignatures.delete(entityId);
|
|
4277
4277
|
this.modelMeshEntries.delete(entityId);
|
|
4278
4278
|
}
|
|
4279
|
+
if (instanceCount === 0) {
|
|
4280
|
+
this.geometrySignatures.set(entityId, geometrySignature);
|
|
4281
|
+
continue;
|
|
4282
|
+
}
|
|
4279
4283
|
if (comp.meshKind === "model") {
|
|
4280
4284
|
if (comp.modelPath && !this.loadingSignatures.has(entityId)) {
|
|
4281
4285
|
this.loadingSignatures.set(entityId, geometrySignature);
|
|
@@ -4360,7 +4364,7 @@ var _InstancedMeshSystem = class _InstancedMeshSystem {
|
|
|
4360
4364
|
}
|
|
4361
4365
|
continue;
|
|
4362
4366
|
}
|
|
4363
|
-
const count =
|
|
4367
|
+
const count = instanceCount;
|
|
4364
4368
|
const geometry = buildGeometry(comp);
|
|
4365
4369
|
const material = new THREE13__namespace.MeshStandardMaterial({ color: "#ffffff" });
|
|
4366
4370
|
const instancedMesh = new THREE13__namespace.InstancedMesh(geometry, material, count);
|