Skip to content

Commit 626d3bf

Browse files
committed
Fix for textbubble crash
Some bad practices on my part there... Well, it's better now.
1 parent 2ee88a2 commit 626d3bf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble_layer.gd

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,8 @@ func bubble_apply_overrides(bubble:TextBubble) -> void:
143143
nlp.get_theme_stylebox(&'panel').content_margin_bottom = name_label_padding.y
144144
bubble.name_label_offset = name_label_offset
145145
bubble.name_label_alignment = name_label_alignment
146-
147-
if !name_label_enabled:
148-
nlp.queue_free()
149-
146+
147+
nlp.get_parent().visible = name_label_enabled
150148

151149
## CHOICE SETTINGS
152150
if choices_layout_force_lines:
@@ -185,5 +183,3 @@ func bubble_apply_overrides(bubble:TextBubble) -> void:
185183
choice_theme.set_color(&'font_focus_color', &'Button', choices_text_color_focus)
186184
choice_theme.set_color(&'font_disabled_color', &'Button', choices_text_color_disabled)
187185
bubble.choice_container.theme = choice_theme
188-
189-

0 commit comments

Comments
 (0)