summaryrefslogtreecommitdiff
path: root/servers/rendering/dummy/storage/mesh_storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'servers/rendering/dummy/storage/mesh_storage.cpp')
-rw-r--r--servers/rendering/dummy/storage/mesh_storage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/servers/rendering/dummy/storage/mesh_storage.cpp b/servers/rendering/dummy/storage/mesh_storage.cpp
index adf736eee3..52de998835 100644
--- a/servers/rendering/dummy/storage/mesh_storage.cpp
+++ b/servers/rendering/dummy/storage/mesh_storage.cpp
@@ -56,3 +56,10 @@ void MeshStorage::mesh_free(RID p_rid) {
mesh_owner.free(p_rid);
}
+
+void MeshStorage::mesh_clear(RID p_mesh) {
+ DummyMesh *m = mesh_owner.get_or_null(p_mesh);
+ ERR_FAIL_COND(!m);
+
+ m->surfaces.clear();
+}