eehee oopsy viewport autoload!
This commit is contained in:
parent
d729c0a7a3
commit
da9111bcf2
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ func _enter_tree() -> void:
|
|||
else:
|
||||
viewport.add_child.call_deferred(current_scene)
|
||||
|
||||
for child in get_tree().root.get_children():
|
||||
if child.is_in_group(&"viewport_autoload"):
|
||||
child.reparent.call_deferred(viewport)
|
||||
|
||||
|
||||
func _on_scene_changed() -> void:
|
||||
for child in viewport.get_children():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue