mesh: add svg import to sketch, kiri: fix svg import multi obj

This commit is contained in:
Stewart Allen 2024-07-27 13:49:28 -04:00
commit d8655a60a9
5 changed files with 30 additions and 20 deletions

View file

@ -857,7 +857,7 @@ function platformLoadFiles(files, group) {
let svg = load.SVG.parse(data.textDecode('utf-8'));
let ind = 0;
for (let v of svg) {
platformLoadWidget(group, svg[ind], ind ? `${name}-${ind++}` : name);
platformLoadWidget(group, svg[ind++], ind ? `${name}-${ind}` : name);
}
load_dec();
}