Specialised overload, called by the general nudgeSelected() routine
| 377 | |
| 378 | // Specialised overload, called by the general nudgeSelected() routine |
| 379 | void nudgeSelected(ENudgeDirection direction, float amount, OrthoOrientation viewtype) |
| 380 | { |
| 381 | AxisBase axes(AxisBase_forViewType(viewtype)); |
| 382 | |
| 383 | //Vector3 view_direction(-axes.z); |
| 384 | Vector3 nudge(AxisBase_axisForDirection(axes, direction) * amount); |
| 385 | |
| 386 | if (GlobalSelectionSystem().getActiveManipulatorType() == selection::IManipulator::Translate || |
| 387 | GlobalSelectionSystem().getActiveManipulatorType() == selection::IManipulator::Drag || |
| 388 | GlobalSelectionSystem().getActiveManipulatorType() == selection::IManipulator::Clip) |
| 389 | { |
| 390 | translateSelected(nudge); |
| 391 | |
| 392 | // In clip mode, update the clipping plane |
| 393 | if (GlobalSelectionSystem().getActiveManipulatorType() == selection::IManipulator::Clip) |
| 394 | { |
| 395 | GlobalClipper().update(); |
| 396 | } |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | void nudgeSelected(ENudgeDirection direction) |
| 401 | { |
no test coverage detected