From 0dc40dac2c109958fde6ec771c3f1986ab5710d0 Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Fri, 27 Dec 2024 14:40:05 +0900 Subject: [PATCH] refactor: fix a lint issue --- packages/three-vrm-animation/src/VRMAnimationLoaderPlugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') {