1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

Merge pull request #107585 from KoBeWi/surfaced_bug

Clear cache when setting Mesh's surfaces
This commit is contained in:
Thaddeus Crews
2025-06-18 18:13:51 -05:00

View File

@@ -1679,6 +1679,7 @@ void ArrayMesh::_set_surfaces(const Array &p_surfaces) {
} }
surfaces.clear(); surfaces.clear();
clear_cache();
aabb = AABB(); aabb = AABB();
for (int i = 0; i < surface_data.size(); i++) { for (int i = 0; i < surface_data.size(); i++) {