rotation gizmo visible = false; when camera preview

(cherry picked from commit 60d67f13da)
This commit is contained in:
Thakee Nathees 2020-05-08 06:44:24 +05:30 committed by Rémi Verschelde
parent c4e00f3d57
commit 7d931bad58
1 changed files with 2 additions and 0 deletions

View File

@ -3090,6 +3090,8 @@ void SpatialEditorViewport::_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", this, "_preview_exited_scene");