summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2018-09-09 20:52:43 +0200
committerJFonS <joan.fonssanchez@gmail.com>2018-09-09 20:58:15 +0200
commitfdb6987eb4ff11f47f22edb43efbc00ea888ca02 (patch)
tree567e23b93ba6c5bab70331cbb20e44c8a602bd18 /scene/resources
parent1093c0ff51b980634dffdd9618eaa53061da6419 (diff)
Clear cache after reimporting an ArrayMesh
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/mesh.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp
index e6ef956dc5..369712fa2b 100644
--- a/scene/resources/mesh.cpp
+++ b/scene/resources/mesh.cpp
@@ -1375,6 +1375,7 @@ void ArrayMesh::reload_from_file() {
VisualServer::get_singleton()->mesh_clear(mesh);
surfaces.clear();
clear_blend_shapes();
+ clear_cache();
Resource::reload_from_file();