Skip to content

Commit b23d689

Browse files
authored
Styles: Apply new overrides when switching styles if there's a common ancestor (#2556)
1 parent 93a570d commit b23d689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/dialogic/Modules/Style/subsystem_styles.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func load_style(style_name := "", parent: Node = null, is_base_style := true, st
5151
return previous_layout
5252

5353
# If this has the same scene setup, just apply the new overrides
54-
elif previous_layout.get_meta('style') == style.get_inheritance_root():
54+
elif previous_layout.get_meta('style') == style.get_inheritance_root() or previous_layout.get_meta('style').get_inheritance_root() == style.get_inheritance_root():
5555
DialogicUtil.apply_scene_export_overrides(previous_layout, style.get_layer_inherited_info("").overrides)
5656
var index := 0
5757
for layer in previous_layout.get_layers():

0 commit comments

Comments
 (0)