mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:36:39 +02:00
Cleanup on aisle 3.
This commit is contained in:
parent
1706c7c97a
commit
97cf9f2285
1 changed files with 1 additions and 3 deletions
|
@ -629,8 +629,6 @@ bool Model::setJointPosition(int jointIndex, const glm::vec3& position) {
|
||||||
for (int j = 1; j < freeLineage.size(); j++) {
|
for (int j = 1; j < freeLineage.size(); j++) {
|
||||||
int sourceIndex = freeLineage.at(j);
|
int sourceIndex = freeLineage.at(j);
|
||||||
int destIndex = freeLineage.at(j - 1);
|
int destIndex = freeLineage.at(j - 1);
|
||||||
const FBXJoint& sourceJoint = geometry.joints.at(sourceIndex);
|
|
||||||
const FBXJoint& destJoint = geometry.joints.at(destIndex);
|
|
||||||
JointState& sourceState = _jointStates[sourceIndex];
|
JointState& sourceState = _jointStates[sourceIndex];
|
||||||
JointState& destState = _jointStates[destIndex];
|
JointState& destState = _jointStates[destIndex];
|
||||||
glm::vec3 sourceTranslation = extractTranslation(sourceState.transform);
|
glm::vec3 sourceTranslation = extractTranslation(sourceState.transform);
|
||||||
|
@ -640,7 +638,7 @@ bool Model::setJointPosition(int jointIndex, const glm::vec3& position) {
|
||||||
if (boneLength < EPSILON) {
|
if (boneLength < EPSILON) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
float extension = destJoint.distanceToParent * uniformScale / boneLength - 1.0f;
|
float extension = geometry.joints.at(destIndex).distanceToParent * uniformScale / boneLength - 1.0f;
|
||||||
if (fabs(extension) < EPSILON) {
|
if (fabs(extension) < EPSILON) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue