Bump version to 3.8.1
Fix dialog texture import Fix piglin skin model
This commit is contained in:
parent
7be6eca989
commit
ce6ba0e178
@ -25,7 +25,7 @@
|
||||
<script>
|
||||
if (typeof module === 'object') {window.module = module; module = undefined;}//jQuery Fix
|
||||
const isApp = typeof require !== 'undefined';
|
||||
const appVersion = '3.8.0';
|
||||
const appVersion = '3.8.1';
|
||||
</script>
|
||||
<div id="loading_error_message" style="display: none;">
|
||||
<div>An error occurred while loading Blockbench</div>
|
||||
|
@ -205,6 +205,7 @@ function buildForm(dialog) {
|
||||
bar.on('click', e => {
|
||||
function fileCB(files) {
|
||||
data.value = files[0].path;
|
||||
data.content = files[0].content;
|
||||
input.val(data.value);
|
||||
dialog.updateFormValues()
|
||||
}
|
||||
@ -214,7 +215,8 @@ function buildForm(dialog) {
|
||||
resource_id: data.resource_id,
|
||||
extensions: data.extensions,
|
||||
type: data.filetype,
|
||||
startpath: data.value
|
||||
startpath: data.value,
|
||||
readtype: data.readtype
|
||||
}, fileCB);
|
||||
break;
|
||||
case 'folder':
|
||||
@ -369,6 +371,9 @@ window.Dialog = class Dialog {
|
||||
case 'checkbox':
|
||||
result[form_id] = data.bar.find('input#'+form_id).is(':checked')
|
||||
break;
|
||||
case 'file':
|
||||
result[form_id] = isApp ? data.value : data.content;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ function resizeWindow(event) {
|
||||
}
|
||||
Blockbench.dispatchEvent('resize_window', event);
|
||||
}
|
||||
$(window).on('resize orientationchange', resizeWindow)
|
||||
|
||||
window.addEventListener('resize', resizeWindow);
|
||||
window.addEventListener('orientationchange', () => {
|
||||
setTimeout(resizeWindow, 100)
|
||||
|
@ -315,6 +315,7 @@ const skin_dialog = new Dialog({
|
||||
label: 'dialog.skin.texture',
|
||||
type: 'file',
|
||||
extensions: ['png'],
|
||||
readtype: 'image',
|
||||
filetype: 'PNG',
|
||||
},
|
||||
pose: {type: 'checkbox', label: 'dialog.skin.pose', value: true},
|
||||
@ -3358,7 +3359,7 @@ skin_presets.pig = `{
|
||||
}`;
|
||||
skin_presets.piglin = `{
|
||||
"name": "piglin",
|
||||
"texturewidth": 128,
|
||||
"texturewidth": 64,
|
||||
"textureheight": 64,
|
||||
"eyes": [
|
||||
[10, 11, 1, 1],
|
||||
@ -3382,7 +3383,7 @@ skin_presets.piglin = `{
|
||||
"pivot": [4.5, 30, 0],
|
||||
"rotation": [0, 0, -25],
|
||||
"cubes": [
|
||||
{"name": "Head", "origin": [4.5, 25, -2], "size": [1, 5, 4], "uv": [57, 38]}
|
||||
{"name": "Head", "origin": [4.5, 25, -2], "size": [1, 5, 4], "uv": [51, 6]}
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -3391,7 +3392,7 @@ skin_presets.piglin = `{
|
||||
"pivot": [-4.5, 30, 0],
|
||||
"rotation": [0, 0, 25],
|
||||
"cubes": [
|
||||
{"name": "Head", "origin": [-5.5, 25, -2], "size": [1, 5, 4], "uv": [57, 22]}
|
||||
{"name": "Head", "origin": [-5.5, 25, -2], "size": [1, 5, 4], "uv": [39, 6]}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Blockbench",
|
||||
"description": "Model editing and animation software",
|
||||
"version": "3.8.0",
|
||||
"version": "3.8.1",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": {
|
||||
"name": "JannisX11",
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user