| 39 | } |
| 40 | |
| 41 | void rotateSelected(const Quaternion& rotation) |
| 42 | { |
| 43 | // Perform the rotation according to the current mode |
| 44 | if (GlobalSelectionSystem().getSelectionMode() == SelectionMode::Component) |
| 45 | { |
| 46 | GlobalSelectionSystem().foreachSelectedComponent( |
| 47 | RotateComponentSelected(rotation, GlobalSelectionSystem().getPivot2World().translation())); |
| 48 | } |
| 49 | else |
| 50 | { |
| 51 | // Cycle through the selections and rotate them |
| 52 | GlobalSelectionSystem().foreachSelected(RotateSelected(rotation, |
| 53 | GlobalSelectionSystem().getPivot2World().translation())); |
| 54 | } |
| 55 | |
| 56 | // Update the views |
| 57 | SceneChangeNotify(); |
| 58 | |
| 59 | GlobalSceneGraph().foreachNode(scene::freezeTransformableNode); |
| 60 | } |
| 61 | |
| 62 | // greebo: see header for documentation |
| 63 | void rotateSelected(const Vector3& eulerXYZ) |
no test coverage detected