mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
parent
c80a8b2345
commit
d2eb6de2d5
23
js/web.js
23
js/web.js
@ -122,6 +122,29 @@ async function loadInfoFromURL() {
|
||||
icon: 'running_with_errors'
|
||||
})
|
||||
})
|
||||
} else if (Blockbench.queries.loadtype) {
|
||||
let file = {
|
||||
content: Blockbench.queries.loaddata,
|
||||
name: Blockbench.queries.loadname || 'file',
|
||||
path: Blockbench.queries.loadname || 'file'
|
||||
};
|
||||
switch (Blockbench.queries.loadtype) {
|
||||
case 'minecraft_skin': {
|
||||
Formats.skin.setup_dialog.show();
|
||||
Formats.skin.setup_dialog.setFormValues({
|
||||
texture: file
|
||||
})
|
||||
break;
|
||||
}
|
||||
case 'image': {
|
||||
loadImages([file]);
|
||||
break;
|
||||
}
|
||||
case 'json': {
|
||||
loadModelFile(file);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user