Merge pull request #45272 from Calinou/editor-cinematic-preview-hide-rotation-gizmog

Hide the rotation gizmo when editor cinematic preview is enabled
This commit is contained in:
Rémi Verschelde 2021-01-18 10:04:35 +01:00 committed by GitHub
commit 125d9b0fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3215,6 +3215,8 @@ void Node3DEditorViewport::_toggle_camera_preview(bool p_activate) {
void Node3DEditorViewport::_toggle_cinema_preview(bool p_activate) { void Node3DEditorViewport::_toggle_cinema_preview(bool p_activate) {
previewing_cinema = p_activate; previewing_cinema = p_activate;
rotation_control->set_visible(!p_activate);
if (!previewing_cinema) { if (!previewing_cinema) {
if (previewing != nullptr) { if (previewing != nullptr) {
previewing->disconnect("tree_exited", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene)); previewing->disconnect("tree_exited", callable_mp(this, &Node3DEditorViewport::_preview_exited_scene));