diff --git a/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp b/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp index 5bec6485f..48be1816a 100644 --- a/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp +++ b/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp @@ -65,6 +65,10 @@ void tesseratos::debugCameraPlugin(Cubos& cubos) { window->mouseState(MouseState::Locked); controller.enabled = true; + } else if (!input.pressed("free-toggle") && controller.enabled) + { + window->mouseState(MouseState::Default); + controller.enabled = false; } } });