summaryrefslogtreecommitdiff
path: root/modules/gridmap
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-03-14 04:08:54 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:28:19 +0200
commitdd94380b11a741a692948e496c34e5e5c24cf930 (patch)
tree57abf5c0b9b8c8de01f7e7627b01cb2bf2bdf320 /modules/gridmap
parent22b5f0f60807c5f321a06f6e2eebca756f35c258 (diff)
Fix GridMap signal "cell_size_changed" disconnect error
Fixes GridMap signal "cell_size_changed" disconnect error. (cherry picked from commit d8bad3eef54203238de4252f1c218fe3683145b0)
Diffstat (limited to 'modules/gridmap')
-rw-r--r--modules/gridmap/editor/grid_map_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp
index 214d4d8ec2..541a95ab6f 100644
--- a/modules/gridmap/editor/grid_map_editor_plugin.cpp
+++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp
@@ -913,7 +913,7 @@ void GridMapEditor::update_palette() {
}
void GridMapEditor::edit(GridMap *p_gridmap) {
- if (node) {
+ if (node && node->is_connected("cell_size_changed", callable_mp(this, &GridMapEditor::_draw_grids))) {
node->disconnect("cell_size_changed", callable_mp(this, &GridMapEditor::_draw_grids));
}