refactor widget as class. patch engine, frame, cli
This commit is contained in:
parent
8e208c99d5
commit
74d3d8752c
9 changed files with 300 additions and 306 deletions
|
|
@ -399,7 +399,7 @@
|
|||
}
|
||||
}
|
||||
if (data.load) {
|
||||
platformLoad(data.load, (verts, widget) => {
|
||||
api.platform.load(data.load, (verts, widget) => {
|
||||
send({event: "loaded", data: [ widget.id ]});
|
||||
})
|
||||
};
|
||||
|
|
@ -2044,7 +2044,7 @@
|
|||
function loadFile() {
|
||||
$('load-file').onchange = function(event) {
|
||||
console.log(event);
|
||||
platformLoadFiles(event.target.files);
|
||||
api.platform.load_files(event.target.files);
|
||||
};
|
||||
$('load-file').click();
|
||||
// alert2("drag/drop STL files onto platform to import\nreload page to return to last saved state");
|
||||
|
|
|
|||
Loading…
Reference in a new issue