mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Fix for sending translation for non-animated joints.
Only the JointState._defaultTranslation needs to be multiplied by the unitScale in JointState::translationIsDefault(). This was incorrectly flagging some non-animated joints as animated.
This commit is contained in:
parent
5692e3ba2d
commit
1c2f86f8b7
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ bool JointState::rotationIsDefault(const glm::quat& rotation, float tolerance) c
|
|||
}
|
||||
|
||||
bool JointState::translationIsDefault(const glm::vec3& translation, float tolerance) const {
|
||||
return glm::distance(_defaultTranslation * _unitsScale, translation * _unitsScale) < tolerance;
|
||||
return glm::distance(_defaultTranslation * _unitsScale, translation) < tolerance;
|
||||
}
|
||||
|
||||
glm::quat JointState::getDefaultRotationInParentFrame() const {
|
||||
|
|
Loading…
Reference in a new issue