Core: Integrate Ref::instantiate where possible

This commit is contained in:
Thaddeus Crews
2024-06-09 15:21:41 -05:00
parent 0f5f3bc954
commit 925b690c98
44 changed files with 81 additions and 81 deletions

View File

@@ -88,8 +88,8 @@ void Path3D::_update_debug_mesh() {
return;
}
if (!debug_mesh.is_valid()) {
debug_mesh = Ref<ArrayMesh>(memnew(ArrayMesh));
if (debug_mesh.is_null()) {
debug_mesh.instantiate();
}
if (!(curve.is_valid())) {