Explorar o código

Merge pull request #69806 from iamtoaster/fix-69754

Fix TileMap redrawing itself twice on creation
Rémi Verschelde %!s(int64=2) %!d(string=hai) anos
pai
achega
3cffd70eea
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      scene/2d/tile_map.cpp

+ 3 - 1
scene/2d/tile_map.cpp

@@ -995,9 +995,11 @@ void TileMap::_recompute_rect_cache() {
 		}
 	}
 
+	bool changed = rect_cache != r_total;
+
 	rect_cache = r_total;
 
-	item_rect_changed();
+	item_rect_changed(changed);
 
 	rect_cache_dirty = false;
 #endif