Fix last spine position

master
Jeremy Hu 2019-06-10 22:27:51 +09:30
parent 6fc65df6e2
commit be4f9fd014
1 changed files with 4 additions and 5 deletions

View File

@ -221,10 +221,10 @@ void PoseDocument::updateBonesFromParameters(std::vector<RiggerBone> *bones,
valueOfKeyInMapOrEmpty(map, "toZ").toFloat()
};
bone.tailPosition = toPosition;
for (const auto &child: bone.children) {
auto &childBone = (*bones)[child];
childBone.headPosition = toPosition;
}
//for (const auto &child: bone.children) {
// auto &childBone = (*bones)[child];
// childBone.headPosition = toPosition;
//}
}
}
}
@ -613,4 +613,3 @@ void PoseDocument::firstSpinePositionAndLengthFromParameters(const std::map<QStr
*length = head.distanceToPoint(tail);
*position = head;
}