From 0f574705cf7338998a25e162c01ddf4840dfe519 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sun, 18 Dec 2022 18:00:12 -0300 Subject: [PATCH] [Variants][Fixed] _sub_pcb initialization --- kibot/out_base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kibot/out_base.py b/kibot/out_base.py index 253c6d6c..48d4a078 100644 --- a/kibot/out_base.py +++ b/kibot/out_base.py @@ -227,6 +227,7 @@ class VariantOptions(BaseOptions): A short-cut to use for simple cases where a variant is an overkill """ super().__init__() self._comps = None + self._sub_pcb = None self.undo_3d_models = {} self.undo_3d_models_rep = {} self._highlight_3D_file = None @@ -933,6 +934,4 @@ class VariantOptions(BaseOptions): # Apply the variant comps = self.variant.filter(comps) self._sub_pcb = self.variant._sub_pcb - else: - self._sub_pcb = None self._comps = comps