Skip to content

Commit

Permalink
Add minor comments to BaseGizmoVisual (#881)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Nov 2, 2023
1 parent 4707827 commit 79acfe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/gz/rendering/base/BaseGizmoVisual.hh
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ namespace ignition
this->visuals[TransformAxis::TA_TRANSLATION_X] = transXVis;
this->visuals[TransformAxis::TA_TRANSLATION_Y] = transYVis;
this->visuals[TransformAxis::TA_TRANSLATION_Z] = transZVis;
// Store the translation origin visual in this->visuals using a key
// that's not already occupied by the TransformAxis enum
this->visuals[TransformAxis::TA_TRANSLATION_Z << 1] = transOrigin;

// translation handles
Expand Down Expand Up @@ -584,6 +586,8 @@ namespace ignition
this->visuals[TransformAxis::TA_ROTATION_X] = rotXVis;
this->visuals[TransformAxis::TA_ROTATION_Y] = rotYVis;
this->visuals[TransformAxis::TA_ROTATION_Z] = rotZVis;
// Store the full rotation visual in this->visuals using a key
// that's not already occupied by the TransformAxis enum
this->visuals[TransformAxis::TA_ROTATION_Z << 1] = rotFullVis;

// rotation handles
Expand Down

0 comments on commit 79acfe4

Please sign in to comment.