diff options
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: { |