From 652de74ac4f44c8e739297866e770547dc4b2486 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 16 Jun 2025 11:27:23 +0200 Subject: [PATCH] Clear cache when setting Mesh's surfaces --- scene/resources/mesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp index a02ac81c87c..eb3f4040eba 100644 --- a/scene/resources/mesh.cpp +++ b/scene/resources/mesh.cpp @@ -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++) {