fix overlays not spawning in with tracking

This commit is contained in:
Crispy 2021-06-05 00:07:41 +02:00
parent 670df66b38
commit cf2b82b5fb
2 changed files with 3 additions and 1 deletions

View file

@ -80,6 +80,7 @@ func load_settings():
update_offset() update_offset()
if loaded.has("visible"): if loaded.has("visible"):
set_overlay_visible(loaded.visible) set_overlay_visible(loaded.visible)
else:
save_settings() save_settings()

View file

@ -35,6 +35,7 @@ func add_overlay(type, name):
instance.overlay_scene = scene instance.overlay_scene = scene
instance.type = type instance.type = type
add_child(instance) add_child(instance)
instance.update_offset()
emit_signal("added_overlay", name) emit_signal("added_overlay", name)