diff options
author | kobewi <kobewi4e@gmail.com> | 2022-11-23 00:14:08 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-02-19 21:34:45 +0100 |
commit | a031911c828da4f6f93950afa0688ac062bc96bd (patch) | |
tree | 67c9e6adbc28186ae60bff4afcb2ba2ece47bd59 /editor/plugins/node_3d_editor_plugin.cpp | |
parent | 0246230e2b7c542f003c3c53cffc22dedc0c9c50 (diff) | |
download | redot-engine-a031911c828da4f6f93950afa0688ac062bc96bd.tar.gz |
Use check_changed_settings_in_group() everywhere
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index f0cb2aa3a5..a007411d29 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -2666,7 +2666,11 @@ void Node3DEditorPlugin::edited_scene_changed() { } void Node3DEditorViewport::_project_settings_changed() { - //update shadow atlas if changed + if (!EditorSettings::get_singleton()->check_changed_settings_in_group("rendering")) { + return; + } + + // Update shadow atlas if changed. int shadowmap_size = GLOBAL_GET("rendering/lights_and_shadows/positional_shadow/atlas_size"); bool shadowmap_16_bits = GLOBAL_GET("rendering/lights_and_shadows/positional_shadow/atlas_16_bits"); int atlas_q0 = GLOBAL_GET("rendering/lights_and_shadows/positional_shadow/atlas_quadrant_0_subdiv"); @@ -7697,8 +7701,10 @@ void Node3DEditor::_notification(int p_what) { case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { // Update grid color by rebuilding grid. - _finish_grid(); - _init_grid(); + if (EditorSettings::get_singleton()->check_changed_settings_in_group("editors/3d")) { + _finish_grid(); + _init_grid(); + } } break; case NOTIFICATION_VISIBILITY_CHANGED: { |