Fixed STEP output problems.
When downloading missing 3D models, but not filtering them.
This commit is contained in:
parent
0f8eb6af2c
commit
1f46e284f9
|
|
@ -194,6 +194,7 @@ class STEPOptions(VariantOptions):
|
||||||
return fname
|
return fname
|
||||||
|
|
||||||
def filter_components(self, dir):
|
def filter_components(self, dir):
|
||||||
|
self.undo_3d_models_rep = {}
|
||||||
if not self._comps:
|
if not self._comps:
|
||||||
# No variant/filter to apply
|
# No variant/filter to apply
|
||||||
if self.download_models():
|
if self.download_models():
|
||||||
|
|
@ -207,7 +208,6 @@ class STEPOptions(VariantOptions):
|
||||||
comps_hash = self.get_refs_hash()
|
comps_hash = self.get_refs_hash()
|
||||||
# Remove the 3D models for not fitted components
|
# Remove the 3D models for not fitted components
|
||||||
rem_models = []
|
rem_models = []
|
||||||
self.undo_3d_models_rep = {}
|
|
||||||
for m in GS.board.GetModules():
|
for m in GS.board.GetModules():
|
||||||
ref = m.GetReference()
|
ref = m.GetReference()
|
||||||
c = comps_hash.get(ref, None)
|
c = comps_hash.get(ref, None)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue