1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

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

@@ -35,8 +35,8 @@
Ref<OccluderPolygon2D> LightOccluder2DEditor::_ensure_occluder() const {
Ref<OccluderPolygon2D> occluder = node->get_occluder_polygon();
if (!occluder.is_valid()) {
occluder = Ref<OccluderPolygon2D>(memnew(OccluderPolygon2D));
if (occluder.is_null()) {
occluder.instantiate();
node->set_occluder_polygon(occluder);
}
return occluder;