| 22 | {} |
| 23 | |
| 24 | void SceneManipulationPivot::initialise() |
| 25 | { |
| 26 | _entityPivotIsOrigin = registry::getValue<bool>(RKEY_ENTITY_PIVOT_IS_ORIGIN); |
| 27 | _snapPivotToGrid = registry::getValue<bool>(RKEY_SNAP_ROTATION_PIVOT_TO_GRID); |
| 28 | _defaultPivotLocationIgnoresLightVolumes = registry::getValue<bool>(RKEY_DEFAULT_PIVOT_LOCATION_IGNORES_LIGHT_VOLUMES); |
| 29 | |
| 30 | GlobalRegistry().signalForKey(RKEY_ENTITY_PIVOT_IS_ORIGIN).connect( |
| 31 | sigc::mem_fun(this, &SceneManipulationPivot::onRegistryKeyChanged) |
| 32 | ); |
| 33 | GlobalRegistry().signalForKey(RKEY_SNAP_ROTATION_PIVOT_TO_GRID).connect( |
| 34 | sigc::mem_fun(this, &SceneManipulationPivot::onRegistryKeyChanged) |
| 35 | ); |
| 36 | GlobalRegistry().signalForKey(RKEY_DEFAULT_PIVOT_LOCATION_IGNORES_LIGHT_VOLUMES).connect( |
| 37 | sigc::mem_fun(this, &SceneManipulationPivot::onRegistryKeyChanged) |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | void SceneManipulationPivot::applyTranslation(const Vector3& translation) |
| 42 | { |
no test coverage detected