fix widget replace

This commit is contained in:
Stewart Allen 2025-09-01 16:56:43 -04:00
commit d7f13754c8
2 changed files with 2 additions and 2 deletions

View file

@ -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') {

View file

@ -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}));
};