Skip to content

Commit

Permalink
Merge pull request #74890 from smix8/gridmap_cell_size_disconnect_err…
Browse files Browse the repository at this point in the history
…or_4.x

Fix GridMap signal "cell_size_changed" disconnect error
  • Loading branch information
YuriSizov authored Mar 21, 2023
2 parents a44fde1 + d8bad3e commit 58b803c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gridmap/editor/grid_map_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 58b803c

Please sign in to comment.