Clear cache when setting Mesh's surfaces

This commit is contained in:
kobewi
2025-06-16 11:27:23 +02:00
parent 46c495ca21
commit 652de74ac4

View File

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