summaryrefslogtreecommitdiffstats
path: root/scene/resources/3d/shape_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/3d/shape_3d.cpp')
-rw-r--r--scene/resources/3d/shape_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/3d/shape_3d.cpp b/scene/resources/3d/shape_3d.cpp
index 5a79392ba5..259d82b7a0 100644
--- a/scene/resources/3d/shape_3d.cpp
+++ b/scene/resources/3d/shape_3d.cpp
@@ -73,7 +73,7 @@ Ref<ArrayMesh> Shape3D::get_debug_mesh() {
Vector<Vector3> lines = get_debug_mesh_lines();
- debug_mesh_cache = Ref<ArrayMesh>(memnew(ArrayMesh));
+ debug_mesh_cache.instantiate();
if (!lines.is_empty()) {
//make mesh