diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-24 13:28:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-24 13:28:58 +0100 |
commit | 18053a68cb5fb500e851591d246f2b4a737c450d (patch) | |
tree | e6bc3254e3c53884a738656d4085e6315915fe34 | |
parent | e930c8d3838280e40baabc4426bd8236f7ac50a3 (diff) | |
parent | 624426f32e86274183306773ed3483853151f1b5 (diff) |
Merge pull request #73836 from smix8/fix_gridmap_cell_size_changed_signal_4.x
Fix GridMap 'cell_size_changed' signal not disconnecting properly
-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 9a7b37df21..214d4d8ec2 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 (!p_gridmap && node) { + if (node) { node->disconnect("cell_size_changed", callable_mp(this, &GridMapEditor::_draw_grids)); } |