diff --git a/addons/dialogic/Modules/Style/subsystem_styles.gd b/addons/dialogic/Modules/Style/subsystem_styles.gd index c5f65c52d..5a4e7dda4 100644 --- a/addons/dialogic/Modules/Style/subsystem_styles.gd +++ b/addons/dialogic/Modules/Style/subsystem_styles.gd @@ -124,8 +124,10 @@ func reload_current_info_into_new_style(): ## Returns the style currently in use func get_current_style() -> String: - if dialogic.has_active_layout_node(): - return dialogic.get_layout_node().get_meta('style', '') + if has_active_layout_node(): + var style: DialogicStyle = get_layout_node().get_meta('style', null) + if style: + return style.name return ''