Skip to content

Commit

Permalink
Fix joint child axis head visibility
Browse files Browse the repository at this point in the history
Signed-off-by: Atharva Pusalkar <[email protected]>
  • Loading branch information
atharva-18 committed Aug 24, 2021
1 parent 3cbd121 commit f301591
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ignition/rendering/base/BaseJointVisual.hh
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ namespace ignition
else
return;

// Don't change the visibility of joint child axis
if (this->ArrowVisual() != _arrowVisual)
return;

// Hide existing arrow head if it overlaps with the axis
auto axisWorldRotation = _arrowVisual->WorldPose().Rot();
auto jointWorldRotation = this->WorldPose().Rot();
Expand Down

0 comments on commit f301591

Please sign in to comment.