Skip to content

Commit 7b51a78

Browse files
committed
fix(out_base): update 3D variant aspect matching logic
- Correct logic to select default 3D slot selection (added `any_matched`); - Renamed `default` to `default_slots` for clarity.
1 parent f6508d2 commit 7b51a78

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kibot/out_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,13 +758,14 @@ def apply_3D_variant_aspect(self, board, enable=False):
758758
logger.debug(f" - Variant specific: {text}")
759759
var = match.group(1)
760760
slots = match.group(2).split(',') if match.group(2) else []
761+
761762
# Do the match
762763
matched = self.variant.matches_variant(var)
763764
if matched:
764765
self.apply_list_of_3D_models(enable, slots, m, var)
765766
break
766767
if not matched and default is not None:
767-
self.apply_list_of_3D_models(enable, slots, m, '_default_')
768+
self.apply_list_of_3D_models(enable, default, m, '_default_')
768769

769770
def create_3D_highlight_file(self):
770771
if self._highlight_3D_file:

0 commit comments

Comments
 (0)