rotation gizmo visible = false; when camera preview

This commit is contained in:
Thakee Nathees 2020-05-08 06:44:24 +05:30
parent f7ca1c805b
commit 60d67f13da

View file

@ -3186,6 +3186,8 @@ void Node3DEditorViewport::_toggle_camera_preview(bool p_activate) {
ERR_FAIL_COND(p_activate && !preview); ERR_FAIL_COND(p_activate && !preview);
ERR_FAIL_COND(!p_activate && !previewing); ERR_FAIL_COND(!p_activate && !previewing);
rotation_control->set_visible(!p_activate);
if (!p_activate) { if (!p_activate) {
previewing->disconnect("tree_exiting", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene)); previewing->disconnect("tree_exiting", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene));