Commits

Ian Chen  committed 6850e5c

Add shift rotate back in

  • Participants
  • Parent commits d5c4f7b
  • Branches issue_284

Comments (0)

Files changed (1)

File gazebo/gui/GLWidget.cc

   if (signTest < 0 )
     angle *= -1;
 
+  if (this->mouseEvent.shift)
+    angle = rint(angle / (M_PI * 0.25)) * (M_PI * 0.25);
+
   rpy += rpyAmt * angle;
 
   _vis->SetRotation(math::Quaternion(rpy));