mirror of
https://github.com/godotengine/godot
synced 2024-09-05 10:08:45 +00:00
Fix GridMap signal "cell_size_changed" disconnect error
Fixes GridMap signal "cell_size_changed" disconnect error.
This commit is contained in:
parent
79454bfd3b
commit
d8bad3eef5
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue