mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix issues with skin mode
- Fix "Save Model" trying to save model file - Fix rotation tool selecting cubes instead of bones
This commit is contained in:
parent
5808364992
commit
a0a9c920f5
@ -68,6 +68,8 @@ const codec = new Codec('skin_model', {
|
||||
Project.texture_width = data.texturewidth || 64;
|
||||
Project.texture_height = data.textureheight || 64;
|
||||
|
||||
Formats.skin.rotate_cubes = data.rotate_cubes == true;
|
||||
|
||||
var bones = {}
|
||||
var template_cubes = {};
|
||||
|
||||
@ -2343,6 +2345,7 @@ skin_presets.ghast = `{
|
||||
}`;
|
||||
skin_presets.goat = `{
|
||||
"name": "goat",
|
||||
"rotate_cubes": true,
|
||||
"texturewidth": 64,
|
||||
"textureheight": 64,
|
||||
"bones": [
|
||||
|
@ -903,7 +903,7 @@ BARS.defineActions(function() {
|
||||
}
|
||||
} else {
|
||||
saveTextures()
|
||||
if (Format.codec && Format.codec.compile) {
|
||||
if (Format.codec && Format.codec.compile && Format.id != 'skin') {
|
||||
Format.codec.export()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user