diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-18 10:04:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 10:04:35 +0100 |
commit | 125d9b0fc8f8539b4dcba6a9e28b90461a041101 (patch) | |
tree | 26b7d03fe9f173ac2fe7aae1eb0e16f41961b28c /editor | |
parent | d13043b443e89db9719602269656344e31440d22 (diff) | |
parent | fa1d853eeb91c7ff7f89010d8454f7006f3dac85 (diff) |
Merge pull request #45272 from Calinou/editor-cinematic-preview-hide-rotation-gizmog
Hide the rotation gizmo when editor cinematic preview is enabled
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 6cc28ab225..eda472cc38 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3215,6 +3215,8 @@ void Node3DEditorViewport::_toggle_camera_preview(bool p_activate) { void Node3DEditorViewport::_toggle_cinema_preview(bool p_activate) { previewing_cinema = p_activate; + rotation_control->set_visible(!p_activate); + if (!previewing_cinema) { if (previewing != nullptr) { previewing->disconnect("tree_exited", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene)); |