diff --git a/objects/pickup_item.gd b/objects/pickup_item.gd index 2f6433a..420201f 100644 --- a/objects/pickup_item.gd +++ b/objects/pickup_item.gd @@ -11,12 +11,12 @@ var editor_child_scene:Node3D = null if value != item: item = value - if not Engine.is_editor_hint(): - return - if editor_child_scene != null: editor_child_scene.queue_free() - + + if not Engine.is_editor_hint(): + return + editor_child_scene = item.scene.instantiate() add_child(editor_child_scene) editor_child_scene.owner = self