From 1f46e284f9bd611dfa9778ca1a1461b0a09dea27 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 1 Apr 2021 08:32:13 -0300 Subject: [PATCH] Fixed STEP output problems. When downloading missing 3D models, but not filtering them. --- kibot/out_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/out_step.py b/kibot/out_step.py index 7ada17de..65cb5027 100644 --- a/kibot/out_step.py +++ b/kibot/out_step.py @@ -194,6 +194,7 @@ class STEPOptions(VariantOptions): return fname def filter_components(self, dir): + self.undo_3d_models_rep = {} if not self._comps: # No variant/filter to apply if self.download_models(): @@ -207,7 +208,6 @@ class STEPOptions(VariantOptions): comps_hash = self.get_refs_hash() # Remove the 3D models for not fitted components rem_models = [] - self.undo_3d_models_rep = {} for m in GS.board.GetModules(): ref = m.GetReference() c = comps_hash.get(ref, None)