2
0
Эх сурвалжийг харах

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.
smix8 2 жил өмнө
parent
commit
624426f32e

+ 1 - 1
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));
 	}