Fixed STEP output problems.

When downloading missing 3D models, but not filtering them.
This commit is contained in:
Salvador E. Tropea 2021-04-01 08:32:13 -03:00
parent 0f8eb6af2c
commit 1f46e284f9
1 changed files with 1 additions and 1 deletions

View File

@ -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)