diff --git a/packages/three-vrm-animation/src/VRMAnimationLoaderPlugin.ts b/packages/three-vrm-animation/src/VRMAnimationLoaderPlugin.ts index 1f40e39b3..bf44c3f7d 100644 --- a/packages/three-vrm-animation/src/VRMAnimationLoaderPlugin.ts +++ b/packages/three-vrm-animation/src/VRMAnimationLoaderPlugin.ts @@ -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') {