| 129 | } |
| 130 | |
| 131 | void SpatialControlWindow::processCenterOnSelection() |
| 132 | { |
| 133 | if (_centerSelection && _simulationFacade->isSimulationRunning()) { |
| 134 | auto shallowData = _simulationFacade->getSelectionShallowData(); |
| 135 | if (shallowData.numCells > 0 || shallowData.numParticles > 0) { |
| 136 | Viewport::get().setCenterInWorldPos({shallowData.centerPosX, shallowData.centerPosY}); |
| 137 | } |
| 138 | } |
| 139 | } |
nothing calls this directly
no test coverage detected