mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix #1970 issue drag and dropping skin file
This commit is contained in:
parent
a2a1d1a590
commit
9fce77c389
@ -614,12 +614,15 @@ window.Dialog = class Dialog {
|
|||||||
break;
|
break;
|
||||||
case 'file':
|
case 'file':
|
||||||
delete data.file;
|
delete data.file;
|
||||||
if (isApp) {
|
if (data.return_as == 'file' && typeof value == 'object') {
|
||||||
|
data.file = value;
|
||||||
|
data.value = data.file.name;
|
||||||
|
} else if (isApp) {
|
||||||
data.value = value;
|
data.value = value;
|
||||||
} else {
|
} else {
|
||||||
data.content = value;
|
data.content = value;
|
||||||
}
|
}
|
||||||
data.bar.find('input').val(settings.streamer_mode.value ? `[${tl('generic.redacted')}]` : value);
|
data.bar.find('input').val(settings.streamer_mode.value ? `[${tl('generic.redacted')}]` : data.value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ async function loadImages(files, event) {
|
|||||||
} else if (method == 'minecraft_skin') {
|
} else if (method == 'minecraft_skin') {
|
||||||
Formats.skin.setup_dialog.show();
|
Formats.skin.setup_dialog.show();
|
||||||
Formats.skin.setup_dialog.setFormValues({
|
Formats.skin.setup_dialog.setFormValues({
|
||||||
texture: isApp ? files[0].path : files[0].content
|
texture: files[0]
|
||||||
})
|
})
|
||||||
|
|
||||||
} else if (method == 'extrude_with_cubes') {
|
} else if (method == 'extrude_with_cubes') {
|
||||||
|
Loading…
Reference in New Issue
Block a user