From 626d3bf6f616cab157a360a22f31787431488c60 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Wed, 4 Sep 2024 22:09:50 +0200 Subject: [PATCH] Fix for textbubble crash Some bad practices on my part there... Well, it's better now. --- .../Layer_Textbubble/text_bubble_layer.gd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble_layer.gd b/addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble_layer.gd index 6fd3b8e38..27644745f 100644 --- a/addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble_layer.gd +++ b/addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble_layer.gd @@ -143,10 +143,8 @@ func bubble_apply_overrides(bubble:TextBubble) -> void: nlp.get_theme_stylebox(&'panel').content_margin_bottom = name_label_padding.y bubble.name_label_offset = name_label_offset bubble.name_label_alignment = name_label_alignment - - if !name_label_enabled: - nlp.queue_free() - + + nlp.get_parent().visible = name_label_enabled ## CHOICE SETTINGS if choices_layout_force_lines: @@ -185,5 +183,3 @@ func bubble_apply_overrides(bubble:TextBubble) -> void: choice_theme.set_color(&'font_focus_color', &'Button', choices_text_color_focus) choice_theme.set_color(&'font_disabled_color', &'Button', choices_text_color_disabled) bubble.choice_container.theme = choice_theme - -