Skip to content

Commit

Permalink
MovableText: consider full mGlobalTranslation vector (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke authored May 11, 2019
1 parent 74334b7 commit 7ed9057
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rviz/ogre_helpers/movable_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,7 @@ void MovableText::getWorldTransforms(Matrix4 *xform) const
mpCam->getDerivedOrientation().ToRotationMatrix(rot3x3);

// parent node position
Vector3 ppos = mParentNode->_getDerivedPosition() + Vector3::UNIT_Y
* mGlobalTranslation;
Vector3 ppos = mParentNode->_getDerivedPosition() + mGlobalTranslation;
ppos += rot3x3 * mLocalTranslation;

// apply scale
Expand Down

0 comments on commit 7ed9057

Please sign in to comment.