summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-18 10:04:35 +0100
committerGitHub <noreply@github.com>2021-01-18 10:04:35 +0100
commit125d9b0fc8f8539b4dcba6a9e28b90461a041101 (patch)
tree26b7d03fe9f173ac2fe7aae1eb0e16f41961b28c /editor
parentd13043b443e89db9719602269656344e31440d22 (diff)
parentfa1d853eeb91c7ff7f89010d8454f7006f3dac85 (diff)
Merge pull request #45272 from Calinou/editor-cinematic-preview-hide-rotation-gizmog
Hide the rotation gizmo when editor cinematic preview is enabled
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index 6cc28ab225..eda472cc38 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -3215,6 +3215,8 @@ void Node3DEditorViewport::_toggle_camera_preview(bool p_activate) {
void Node3DEditorViewport::_toggle_cinema_preview(bool p_activate) {
previewing_cinema = p_activate;
+ rotation_control->set_visible(!p_activate);
+
if (!previewing_cinema) {
if (previewing != nullptr) {
previewing->disconnect("tree_exited", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene));