From 7551c0ee32e095c7899e1e215b40c9a82e1bcb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0toura=C4=8D?= <525032@mail.muni.cz> Date: Mon, 20 May 2024 13:47:46 +0200 Subject: [PATCH] fix debug axes not disappearing in photo mode --- src/edit/include/edit/scene.hpp | 1 + src/edit/src/editor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/edit/include/edit/scene.hpp b/src/edit/include/edit/scene.hpp index df098f1..baf1e33 100644 --- a/src/edit/include/edit/scene.hpp +++ b/src/edit/include/edit/scene.hpp @@ -64,6 +64,7 @@ public: node_ptr getHighlight() const { return side_highlights[0]; } node_ptr getObjectAxes() const { return object_axes; } node_ptr getCameraAxes() const { return camera_axes; } + node_ptr getCameraAxesDebug() const { return camera_axes_debug; } node_ptr getRotationAxis() const { return rotation_axis; } glm::vec3 getHighlightDirection() const { return highlight_directions[0]; } diff --git a/src/edit/src/editor.cpp b/src/edit/src/editor.cpp index 63b81f6..1c6467e 100644 --- a/src/edit/src/editor.cpp +++ b/src/edit/src/editor.cpp @@ -815,6 +815,7 @@ void Editor::controlSpectate() scene->toggleVisibility(scene->getGrid(), ui_visible); scene->toggleVisibility(scene->getObjectAxes(), ui_visible); scene->toggleVisibility(scene->getCameraAxes(), ui_visible); + scene->toggleVisibility(scene->getCameraAxesDebug(), ui_visible); } } -- GitLab