diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-05-08 06:44:24 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-05-08 06:44:24 +0530 |
commit | 60d67f13dab501259c7623bfe484c6b8b120b6a3 (patch) | |
tree | 85783f634ec874bbada1cc7801119666831ed4a5 | |
parent | f7ca1c805ba2189627b49212ffbfba773f44acc5 (diff) |
rotation gizmo visible = false; when camera preview
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
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 55b50f526c..bdb3eb964c 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)); |