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
commit a7b5119fb4
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

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++) {