From 250f921522a619f84d190e2f5767bf62df587404 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 18 Jan 2021 03:19:05 +0100 Subject: [PATCH] Hide the rotation gizmo when editor cinematic preview is enabled Cinematic preview enables the Camera3D preview automatically. When previewing a Camera3D, the rotation gizmo isn't displayed as it can't be used. (cherry picked from commit fa1d853eeb91c7ff7f89010d8454f7006f3dac85) --- editor/plugins/spatial_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 2c5df7cf83b..a631bf98eb9 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3162,6 +3162,8 @@ void SpatialEditorViewport::_toggle_camera_preview(bool p_activate) { void SpatialEditorViewport::_toggle_cinema_preview(bool p_activate) { previewing_cinema = p_activate; + rotation_control->set_visible(!p_activate); + if (!previewing_cinema) { if (previewing != NULL) previewing->disconnect("tree_exited", this, "_preview_exited_scene");