Merge pull request #38555 from ThakeeNathees/rotation-gizmo-visible-fix
rotation gizmo visible = false; when camera preview
This commit is contained in:
commit
b9f2e57d62
1 changed files with 2 additions and 0 deletions
|
@ -3193,6 +3193,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));
|
||||||
|
|
Loading…
Reference in a new issue