Clear cache when setting Mesh's surfaces
@@ -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++) {