Skip to content

Commit

Permalink
fix no center bone for spring bone
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 25, 2023
1 parent 2366eb3 commit 73e381d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/VRMExporterv0.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ export default class VRMExporterv0 {
const boneGroups = [];
rootSpringBones.forEach(springBone => {
let boneIndex = findBoneIndex(springBone.name);
let centerIndex = findBoneIndex(springBone.center.name);
let centerIndex = findBoneIndex(springBone.center?.name);
if (centerIndex == -1) console.warn("no center bone for spring bone " + springBone.name);
// springBone: bone:boneObject, center:boneObject, string:name, array:colliderGroup, settings:object,
const settings = springBone.settings;

Expand Down

0 comments on commit 73e381d

Please sign in to comment.