Merge pull request #38555 from ThakeeNathees/rotation-gizmo-visible-fix

rotation gizmo visible = false; when camera preview
This commit is contained in:
Rémi Verschelde 2020-05-08 12:59:31 +02:00 committed by GitHub
commit b9f2e57d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));