Fix last spine position
parent
6fc65df6e2
commit
be4f9fd014
|
@ -221,10 +221,10 @@ void PoseDocument::updateBonesFromParameters(std::vector<RiggerBone> *bones,
|
||||||
valueOfKeyInMapOrEmpty(map, "toZ").toFloat()
|
valueOfKeyInMapOrEmpty(map, "toZ").toFloat()
|
||||||
};
|
};
|
||||||
bone.tailPosition = toPosition;
|
bone.tailPosition = toPosition;
|
||||||
for (const auto &child: bone.children) {
|
//for (const auto &child: bone.children) {
|
||||||
auto &childBone = (*bones)[child];
|
// auto &childBone = (*bones)[child];
|
||||||
childBone.headPosition = toPosition;
|
// childBone.headPosition = toPosition;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -613,4 +613,3 @@ void PoseDocument::firstSpinePositionAndLengthFromParameters(const std::map<QStr
|
||||||
*length = head.distanceToPoint(tail);
|
*length = head.distanceToPoint(tail);
|
||||||
*position = head;
|
*position = head;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue