fix widget replace
This commit is contained in:
parent
35660d39cf
commit
d7f13754c8
2 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ class Widget {
|
|||
* @returns {Widget}
|
||||
*/
|
||||
loadVertices(data, options = { index: false }) {
|
||||
// console.log({ loadVertices: this.id, worker: this.inWorker, data });
|
||||
// console.trace({ loadVertices: this.id, worker: this.inWorker, data });
|
||||
let vertices,
|
||||
autoscale = false;
|
||||
if (ArrayBuffer.isView(data) || typeof(data) != 'object') {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ function replace(vertices, sel) {
|
|||
} else {
|
||||
// dialog
|
||||
$('load-file').onchange = function(event) {
|
||||
load.File.load(event.target.files[0])
|
||||
load(event.target.files[0])
|
||||
.then(data => onload(data[0].mesh))
|
||||
.catch(error => console.log({error}));
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue