Fixed PickupItem scenes to spawn their item child scenes.
parent
b8cb77f613
commit
256cd4f1f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue