diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-03-21 12:04:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 12:04:03 +0100 |
commit | 58b803cb9454651c207d430ca263d792e12cad67 (patch) | |
tree | f2ccc80d7c3aa557552c27874a516f525b10029c | |
parent | a44fde12f7f4e4dc2ba47b5ef1232951b95b07b4 (diff) | |
parent | d8bad3eef54203238de4252f1c218fe3683145b0 (diff) | |
download | redot-engine-58b803cb9454651c207d430ca263d792e12cad67.tar.gz |
Merge pull request #74890 from smix8/gridmap_cell_size_disconnect_error_4.x
Fix GridMap signal "cell_size_changed" disconnect error
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.cpp | 2 |
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)); } |