mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Core: Integrate Ref::instantiate where possible
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user