restore group names during obj decoding

This commit is contained in:
Stewart Allen 2022-01-08 21:18:09 -05:00
commit e3b31203c3
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ function load_data(data, file, ext) {
}]);
break;
case "obj":
resolve(load.OBJ.parse(data).map(m => { return {mesh: m.toFloat32(), file} }));
resolve(load.OBJ.parse(data).map(m => { return {mesh: m.toFloat32(), file: m.name || file} }));
break;
case "3mf":
load.TMF.parseAsync(data).then((meshes) => {