From 7d931bad58e744ae08ef8ff3b2fb697daa47d5af Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Fri, 8 May 2020 06:44:24 +0530 Subject: [PATCH] rotation gizmo visible = false; when camera preview (cherry picked from commit 60d67f13dab501259c7623bfe484c6b8b120b6a3) --- editor/plugins/spatial_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 5e72fb175d..b15577008b 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3090,6 +3090,8 @@ void SpatialEditorViewport::_toggle_camera_preview(bool p_activate) { ERR_FAIL_COND(p_activate && !preview); ERR_FAIL_COND(!p_activate && !previewing); + rotation_control->set_visible(!p_activate); + if (!p_activate) { previewing->disconnect("tree_exiting", this, "_preview_exited_scene");