summaryrefslogtreecommitdiffstats
path: root/modules/gridmap
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-11-23 00:14:08 +0100
committerkobewi <kobewi4e@gmail.com>2024-02-19 21:34:45 +0100
commita031911c828da4f6f93950afa0688ac062bc96bd (patch)
tree67c9e6adbc28186ae60bff4afcb2ba2ece47bd59 /modules/gridmap
parent0246230e2b7c542f003c3c53cffc22dedc0c9c50 (diff)
downloadredot-engine-a031911c828da4f6f93950afa0688ac062bc96bd.tar.gz
Use check_changed_settings_in_group() everywhere
Diffstat (limited to 'modules/gridmap')
-rw-r--r--modules/gridmap/editor/grid_map_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp
index c6b68e9d34..d53bf7f7ec 100644
--- a/modules/gridmap/editor/grid_map_editor_plugin.cpp
+++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp
@@ -1501,6 +1501,9 @@ GridMapEditor::~GridMapEditor() {
void GridMapEditorPlugin::_notification(int p_what) {
switch (p_what) {
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
+ if (!EditorSettings::get_singleton()->check_changed_settings_in_group("editors/grid_map")) {
+ break;
+ }
switch ((int)EDITOR_GET("editors/grid_map/editor_side")) {
case 0: { // Left.
Node3DEditor::get_singleton()->move_control_to_left_panel(grid_map_editor);