Commit dd6e16a
Stop mutating dirLocation while importing CAD files
The STL import loop used dirLocation.append("/").append(cf), which
mutates dirLocation in place. After the first file, dirLocation was no
longer the directory path — the second iteration produced paths like
.../dir/a.stl/b.stl, so only the first STL resolved. The mangled value
also leaked to line 33, where the per-variation cad__<variation>.yaml
modifier path is built, so that override file was never found.
Use non-mutating concatenation (dirLocation + "/" + cf) so dirLocation
stays the directory path for every file and for the YAML lookup.
Fixes #110
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 48f83e5 commit dd6e16a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments