diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-14 23:46:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-14 23:46:58 +0100 |
commit | 2a49798c7b92b332c2198f52b9c5ae10bd944bd0 (patch) | |
tree | b823fc7e838541e77ee37efaeaaf41128d5fc4df /editor/plugins/spatial_editor_plugin.cpp | |
parent | ce3c31942961c2ef3343f8f147ab7a318c5447c0 (diff) | |
parent | 55b478afd912d4b6788f736efa87a33777aba5a4 (diff) |
Merge pull request #36970 from JFonS/fix_viewports_update
Update all editor viewports after settings changes
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index a71cb50db4..652e9c7a7d 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -6243,6 +6243,10 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { settings_zfar->set_value(EDITOR_DEF("editors/3d/default_z_far", 1500)); settings_vbc->add_margin_child(TTR("View Z-Far:"), settings_zfar); + for (uint32_t i = 0; i < VIEWPORTS_COUNT; ++i) { + settings_dialog->connect("confirmed", callable_mp(viewports[i], &SpatialEditorViewport::_update_camera), varray(0.0)); + } + /* XFORM DIALOG */ xform_dialog = memnew(ConfirmationDialog); |