You've already forked godot
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:
@@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user