From 60d67f13dab501259c7623bfe484c6b8b120b6a3 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 --- editor/plugins/node_3d_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 55b50f526c5..bdb3eb964c9 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3186,6 +3186,8 @@ void Node3DEditorViewport::_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", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene));