Skip to content

Commit

Permalink
Styles: Fix persistent info getting lost
Browse files Browse the repository at this point in the history
Now persistent info is always merged with the previously stored info. This means switching to a non-textbubble style doesn't clear all registers.
  • Loading branch information
Jowan-Spooner committed Nov 13, 2024
1 parent b9a9a20 commit 61a1526
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/dialogic/Resources/dialogic_layout_base.gd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ func _enter_tree() -> void:


func _exit_tree() -> void:
Engine.set_meta("dialogic_persistent_style_info", _get_persistent_info())
var info: Dictionary = Engine.get_meta("dialogic_persistent_style_info", {})
info.merge(_get_persistent_info(), true)
Engine.set_meta("dialogic_persistent_style_info", info)


## To be overwritten. Return any info that a later used style might want to know.
Expand Down

0 comments on commit 61a1526

Please sign in to comment.