| 226 | } |
| 227 | |
| 228 | void SceneDebugView::onUpdate(Input & input, const float deltaTime, const Viewport & viewport) |
| 229 | { |
| 230 | MultiMeshManager::onUpdate(input, viewport); |
| 231 | |
| 232 | //Camera stub size |
| 233 | if (input.key().isActivated(Key::LeftControl) && input.mouseScroll() != 0.0) { |
| 234 | _cameraScaling = std::max(0.001f, _cameraScaling + (float)input.mouseScroll()*0.1f); |
| 235 | } |
| 236 | if (input.key().isActivated(Key::LeftControl) && input.key().isReleased(Key::P)) { |
| 237 | MeshData & guizmo = getMeshData("guizmo"); |
| 238 | guizmo.active = !guizmo.active; |
| 239 | } |
| 240 | |
| 241 | MeshData & proxy = getMeshData("proxy"); |
| 242 | if( proxy.meshPtr->triangles().size() == 0 ) |
| 243 | // SfM Points only |
| 244 | proxy.renderMode = Mesh::RenderMode::PointRenderMode; |
| 245 | |
| 246 | if (input.key().isActivated(Key::LeftControl) && input.key().isReleased(Key::Z)) { |
| 247 | //MeshData & proxy = getMeshData("proxy"); |
| 248 | if (proxy.renderMode == Mesh::RenderMode::FillRenderMode) { |
| 249 | proxy.renderMode = Mesh::RenderMode::LineRenderMode; |
| 250 | } else { |
| 251 | proxy.renderMode = Mesh::RenderMode::FillRenderMode; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | if (input.key().isReleased(Key::T)) { |
| 256 | save(); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | void SceneDebugView::onUpdate(Input & input, const Viewport & viewport) |
| 261 | { |
nothing calls this directly
no test coverage detected