Update all editor viewports after settings changes
(cherry picked from commit 55b478afd9
)
This commit is contained in:
parent
784ff23adc
commit
4d85f70015
|
@ -3362,6 +3362,7 @@ void SpatialEditorViewport::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("_menu_option"), &SpatialEditorViewport::_menu_option);
|
ClassDB::bind_method(D_METHOD("_menu_option"), &SpatialEditorViewport::_menu_option);
|
||||||
ClassDB::bind_method(D_METHOD("_toggle_camera_preview"), &SpatialEditorViewport::_toggle_camera_preview);
|
ClassDB::bind_method(D_METHOD("_toggle_camera_preview"), &SpatialEditorViewport::_toggle_camera_preview);
|
||||||
ClassDB::bind_method(D_METHOD("_preview_exited_scene"), &SpatialEditorViewport::_preview_exited_scene);
|
ClassDB::bind_method(D_METHOD("_preview_exited_scene"), &SpatialEditorViewport::_preview_exited_scene);
|
||||||
|
ClassDB::bind_method(D_METHOD("_update_camera"), &SpatialEditorViewport::_update_camera);
|
||||||
ClassDB::bind_method(D_METHOD("update_transform_gizmo_view"), &SpatialEditorViewport::update_transform_gizmo_view);
|
ClassDB::bind_method(D_METHOD("update_transform_gizmo_view"), &SpatialEditorViewport::update_transform_gizmo_view);
|
||||||
ClassDB::bind_method(D_METHOD("_selection_result_pressed"), &SpatialEditorViewport::_selection_result_pressed);
|
ClassDB::bind_method(D_METHOD("_selection_result_pressed"), &SpatialEditorViewport::_selection_result_pressed);
|
||||||
ClassDB::bind_method(D_METHOD("_selection_menu_hide"), &SpatialEditorViewport::_selection_menu_hide);
|
ClassDB::bind_method(D_METHOD("_selection_menu_hide"), &SpatialEditorViewport::_selection_menu_hide);
|
||||||
|
@ -6180,6 +6181,10 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
|
||||||
settings_zfar->set_value(EDITOR_DEF("editors/3d/default_z_far", 1500));
|
settings_zfar->set_value(EDITOR_DEF("editors/3d/default_z_far", 1500));
|
||||||
settings_vbc->add_margin_child(TTR("View Z-Far:"), settings_zfar);
|
settings_vbc->add_margin_child(TTR("View Z-Far:"), settings_zfar);
|
||||||
|
|
||||||
|
for (uint32_t i = 0; i < VIEWPORTS_COUNT; ++i) {
|
||||||
|
settings_dialog->connect("confirmed", viewports[i], "_update_camera", varray(0.0));
|
||||||
|
}
|
||||||
|
|
||||||
/* XFORM DIALOG */
|
/* XFORM DIALOG */
|
||||||
|
|
||||||
xform_dialog = memnew(ConfirmationDialog);
|
xform_dialog = memnew(ConfirmationDialog);
|
||||||
|
|
Loading…
Reference in New Issue