Commit a31a89a
committed
Fix saving assemblies when opened with a relative path on the command line.
When a file containing linked files (an assembly) was opened by passing
a relative path to it on the command line; saving it would fail with an
error:
"This sketch links the sketch '%s'; it can only be saved on the same volume."
The problem stems from not `Expand`-ing paths immediately in `main` which
was introduced in 3ea8ebf see here for details:
solvespace#1474 (comment)
The fix is to expand paths to linked files before making them relative to
the assembly.
Fixes solvespace#14651 parent 9fb6ade commit a31a89a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
0 commit comments