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/scene_tree_dock.cpp | |
parent | 0246230e2b7c542f003c3c53cffc22dedc0c9c50 (diff) | |
download | redot-engine-a031911c828da4f6f93950afa0688ac062bc96bd.tar.gz |
Use check_changed_settings_in_group() everywhere
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r-- | editor/scene_tree_dock.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 8a580b565f..1887e090cc 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1475,7 +1475,9 @@ void SceneTreeDock::_notification(int p_what) { } break; case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { - scene_tree->set_auto_expand_selected(EDITOR_GET("docks/scene_tree/auto_expand_to_selected"), false); + if (EditorSettings::get_singleton()->check_changed_settings_in_group("docks/scene_tree")) { + scene_tree->set_auto_expand_selected(EDITOR_GET("docks/scene_tree/auto_expand_to_selected"), false); + } } break; case NOTIFICATION_THEME_CHANGED: { |