|
1 | 1 | # @iwsdk/core |
2 | 2 |
|
3 | | -## Unreleased |
4 | | - |
5 | | -### Behavior Changes |
6 | | - |
7 | | -- `AssetManager.getGLTF(key)` (and `GLTFAssetLoader.getGLTF(key)`) now |
8 | | - return a fresh clone of the cached `GLTF` by default. `scene` and |
9 | | - `scenes` are cloned via `SkeletonUtils.clone` (correct for |
10 | | - `SkinnedMesh`/`Bone` hierarchies); geometries, materials, and |
11 | | - `animations` remain shared by reference. This fixes silent re-parenting |
12 | | - when the same key is used to spawn multiple entities (T270858760). |
13 | | - Pass `{ shared: true }` to opt back into the previous shared-instance |
14 | | - behavior. |
15 | | -- `world.camera` is now auto-restored to its pre-XR local transform and |
16 | | - projection on session exit (deferred one `requestAnimationFrame` so |
17 | | - three.js's `WebXRManager` finishes tearing down on the end-tick first). |
18 | | - Previously the camera was left at the last head pose and the 2D |
19 | | - fallback view was inside-the-head until the app re-applied a camera |
20 | | - setup. Opt out via `xr: { restoreCameraOnExit: false }` if your app |
21 | | - manages this transition itself. |
| 3 | +## 0.4.1 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- `AssetManager.getGLTF(key)` and `GLTFAssetLoader.getGLTF(key)` now return a fresh clone of the cached GLTF by default, preventing silent re-parenting when spawning multiple entities from the same asset. Pass `{ shared: true }` to opt back into the previous shared-instance behavior. |
| 8 | +- Restore `world.camera` to its pre-XR local transform and projection after XR session exit, avoiding a broken browser fallback view after leaving immersive mode. Opt out with `xr: { restoreCameraOnExit: false }`. |
| 9 | +- Route canvas pointer events correctly to screen-space `PanelUI`, including descendant hit handling. |
| 10 | +- Add regression tests for GLTF cloning, browser camera restore, canvas pointer routing, and screen-space UI descendants. |
| 11 | + |
| 12 | +- Updated dependencies |
| 13 | + - @iwsdk/glxf@0.4.1 |
| 14 | + - @iwsdk/locomotor@0.4.1 |
| 15 | + - @iwsdk/xr-input@0.4.1 |
22 | 16 |
|
23 | 17 | ## 0.4.0 |
24 | 18 |
|
|
0 commit comments