extract name from 3mf object when available
This commit is contained in:
parent
c37c627622
commit
abcb2a9fac
2 changed files with 15 additions and 11 deletions
|
|
@ -2486,6 +2486,10 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
|||
MOTO.TMF.parse(e.target.result).then(models => {
|
||||
console.log({models});
|
||||
for (let model of models) {
|
||||
let name = e.target.file.name;
|
||||
if (model.name) {
|
||||
name = model.name + ' - ' + name;
|
||||
}
|
||||
platform.add(
|
||||
newWidget(undefined,group)
|
||||
.loadVertices(model.faces.toFloat32())
|
||||
|
|
|
|||
Loading…
Reference in a new issue