@react-three/viverse 0.2.18 → 0.2.20
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/bone.js +2 -2
- package/package.json +2 -2
package/dist/bone.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { getBone } from '@pmndrs/viverse';
|
|
3
3
|
import { createPortal } from '@react-three/fiber';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { useCharacterModel } from './model.js';
|
|
7
7
|
export function CharacterModelBone({ bone, children }) {
|
|
8
8
|
const model = useCharacterModel();
|
|
9
|
-
const boneObject = useMemo(() => (model
|
|
9
|
+
const boneObject = useMemo(() => getBone(model, bone), [model, bone]);
|
|
10
10
|
if (boneObject == null) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@pixiv/three-vrm": "^3.4.2",
|
|
30
30
|
"zustand": "^5.0.6",
|
|
31
31
|
"@react-three/xr": "^6.6.20",
|
|
32
|
-
"@pmndrs/viverse": "^0.2.
|
|
32
|
+
"@pmndrs/viverse": "^0.2.20"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@react-three/fiber": "*"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/react": "^19.1.8",
|
|
41
41
|
"react": "^19.1.0"
|
|
42
42
|
},
|
|
43
|
-
"version": "0.2.
|
|
43
|
+
"version": "0.2.20",
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsc",
|
|
46
46
|
"check:prettier": "prettier --check src",
|