remove unused indexed option for mesh loading
This commit is contained in:
parent
b5ed7b1a4a
commit
cad64d52f8
5 changed files with 16 additions and 27 deletions
|
|
@ -1179,20 +1179,12 @@ const tool = {
|
|||
let p = worker.model_heal({
|
||||
id: m.id, opt
|
||||
}).then(data => {
|
||||
if (data) {
|
||||
m.reload(
|
||||
data.vertices,
|
||||
data.indices,
|
||||
data.normals
|
||||
);
|
||||
}
|
||||
data?.length && m.reload(data.vertices);
|
||||
});
|
||||
promises.push(p);
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
Promise.all(promises).then(() => {
|
||||
resolve();
|
||||
});
|
||||
Promise.all(promises).then(resolve).catch(error => reject);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue