diff --git a/CHANGELOG.md b/CHANGELOG.md index a5cedca1..0399f63b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/kibot/out_base_3d.py b/kibot/out_base_3d.py index 33802465..152ef7d7 100644 --- a/kibot/out_base_3d.py +++ b/kibot/out_base_3d.py @@ -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: