Skip to content

Commit

Permalink
Merge pull request #577 from saturday06/human_bone_node_index_zero
Browse files Browse the repository at this point in the history
Fix human bone assignment failure for gltf nodes[0]
  • Loading branch information
saturday06 authored Dec 28, 2020
2 parents f6b4968 + 138a466 commit 3f58c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/three-vrm/src/vrm/humanoid/VRMHumanoidImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class VRMHumanoidImporter {
if (schemaHumanoid.humanBones) {
await Promise.all(
schemaHumanoid.humanBones.map(async (bone) => {
if (!bone.bone || !bone.node) {
if (!bone.bone || bone.node == null) {
return;
}

Expand Down

0 comments on commit 3f58c62

Please sign in to comment.