Skip to content

Commit 61a1526

Browse files
committed
Styles: Fix persistent info getting lost
Now persistent info is always merged with the previously stored info. This means switching to a non-textbubble style doesn't clear all registers.
1 parent b9a9a20 commit 61a1526

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/dialogic/Resources/dialogic_layout_base.gd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ func _enter_tree() -> void:
6363

6464

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

6870

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

0 commit comments

Comments
 (0)