diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-08 12:59:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 12:59:31 +0200 |
commit | b9f2e57d6240346f1833fd0390de195c956299e7 (patch) | |
tree | 0e7950a460f58b40813a222dbe5c7c1d334fea6b | |
parent | 44db69a7da1ee9ccc63f0094f39fbb038006aa9f (diff) | |
parent | 60d67f13dab501259c7623bfe484c6b8b120b6a3 (diff) |
Merge pull request #38555 from ThakeeNathees/rotation-gizmo-visible-fix
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 ead3813734..457a0aaa36 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3193,6 +3193,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)); |