Skip to content

Commit

Permalink
refactor: fix a lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Dec 27, 2024
1 parent 7a21f5f commit 0dc40da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/three-vrm-animation/src/VRMAnimationLoaderPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ export class VRMAnimationLoaderPlugin implements GLTFLoaderPlugin {
while (parentBoneName != null && worldMatrixMap.get(parentBoneName) == null) {
parentBoneName = VRMHumanBoneParentMap[parentBoneName];
}
parentBoneName ?? (parentBoneName = 'hipsParent');
if (parentBoneName == null) {
parentBoneName = 'hipsParent';
}

if (path === 'translation') {
if (boneName !== 'hips') {
Expand Down

0 comments on commit 0dc40da

Please sign in to comment.