STL load fetch rewrite

This commit is contained in:
Albert Møller Nielsen 2022-09-27 00:35:16 +02:00 • committed by GitHub
commit ab7e806b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 33 deletions

View file

@ -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 = {}) {