[Colored resistors][Fixed] Problems when no cache is there

Fixes #553
This commit is contained in:
Salvador E. Tropea 2024-01-15 10:39:27 -03:00
parent b78c659141
commit 10b9850517
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
the same footprint but different orientation in the reel.
- 3D outputs:
- `download_lcsc` option to disable LCSC 3D model download (See #415)
- Problems when creating a colored resistor, but we didn't have a cache yet
(i.e. no model downloaded) #553
- BoM:
- Support for ${field} expansion. (#471)
- LCSC links (SchrodingersGat/KiBoM#190)

View File

@ -309,6 +309,7 @@ class Base3DOptions(VariantOptions):
prev_ln = None
points = None
axis = None
os.makedirs(os.path.dirname(name), exist_ok=True)
with open(name, "wt") as d:
colors_defined = False
for ln in f: