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:
JannisX11 2020-12-06 21:20:29 +01:00
parent 5808364992
commit a0a9c920f5
2 changed files with 4 additions and 1 deletions

View File

@ -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": [

View File

@ -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()
}
}