STL load fetch rewrite
This commit is contained in:
parent
1a7e97462b
commit
ab7e806b5c
2 changed files with 21 additions and 33 deletions
|
|
@ -328,7 +328,7 @@ function platformLoad(url, onload) {
|
|||
}
|
||||
}
|
||||
|
||||
function platformLoadSTL(url, onload, formdata) {
|
||||
function platformLoadSTL(url, onload, formdata, credentials) {
|
||||
new load.STL().load(url, (vertices, filename) => {
|
||||
if (vertices) {
|
||||
let widget = newWidget().loadVertices(vertices);
|
||||
|
|
@ -338,7 +338,7 @@ function platformLoadSTL(url, onload, formdata) {
|
|||
onload(vertices, widget);
|
||||
}
|
||||
}
|
||||
}, formdata, 1 / api.view.unit_scale());
|
||||
}, formdata, 1 / api.view.unit_scale(), credentials);
|
||||
}
|
||||
|
||||
function platformLoadURL(url, options = {}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue