MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / nudgeSelected

Function nudgeSelected

radiantcore/selection/algorithm/Transformation.cpp:379–398  ·  view source on GitHub ↗

Specialised overload, called by the general nudgeSelected() routine

Source from the content-addressed store, hash-verified

377
378// Specialised overload, called by the general nudgeSelected() routine
379void 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
400void nudgeSelected(ENudgeDirection direction)
401{

Callers 2

cloneSelectedFunction · 0.85
nudgeSelectedCmdFunction · 0.85

Calls 7

AxisBase_forViewTypeFunction · 0.85
translateSelectedFunction · 0.85
updateMethod · 0.45
getGridSizeMethod · 0.45
getActiveViewTypeMethod · 0.45

Tested by

no test coverage detected