Merge pull request from smix8/fix_gridmap_cell_size_changed_signal_4.x

Fix GridMap 'cell_size_changed' signal not disconnecting properly
This commit is contained in:
Rémi Verschelde 2023-02-24 13:28:58 +01:00
commit 18053a68cb
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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));
}