You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix GridMap 'cell_size_changed' signal not disconnecting properly
Fixes that a GridMap node would not disconnect from the 'cell_size_changed' signal when the new selected node is another valid GridMap.
This commit is contained in:
@@ -913,7 +913,7 @@ void GridMapEditor::update_palette() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GridMapEditor::edit(GridMap *p_gridmap) {
|
void GridMapEditor::edit(GridMap *p_gridmap) {
|
||||||
if (!p_gridmap && node) {
|
if (node) {
|
||||||
node->disconnect("cell_size_changed", callable_mp(this, &GridMapEditor::_draw_grids));
|
node->disconnect("cell_size_changed", callable_mp(this, &GridMapEditor::_draw_grids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user