diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-09 19:49:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-09 19:49:24 +0100 |
commit | 78f7cca69e95d266bd77a38edeaca4c6ca19e26b (patch) | |
tree | 7006ff443fa927a23db3b5fa1178f2995892c5f4 /editor | |
parent | 7afa1a64eceae9a6a27d84335d79f3f9238bd277 (diff) | |
parent | 311ab52b6c8aab811e989f0d33ba3b2334655097 (diff) |
Merge pull request #33491 from nekomatata/camera-preview-new-scene
Fixed Camera preview when creating new scenes
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index ef99256081..c989613f02 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2765,6 +2765,7 @@ void SpatialEditorViewport::_preview_exited_scene() { preview_camera->disconnect("toggled", this, "_toggle_camera_preview"); preview_camera->set_pressed(false); _toggle_camera_preview(false); + preview_camera->connect("toggled", this, "_toggle_camera_preview"); view_menu->show(); } @@ -3602,6 +3603,7 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed vbox->add_child(preview_camera); preview_camera->set_h_size_flags(0); preview_camera->hide(); + preview_camera->connect("toggled", this, "_toggle_camera_preview"); previewing = NULL; gizmo_scale = 1.0; |