Fix issue with saving skin on desktop app

This commit is contained in:
JannisX11 2021-04-12 20:58:33 +02:00
parent 9cc76e62c2
commit f7edc3de3b
2 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ const codec = new Codec('skin_model', {
EditSession.initNewModel()
},
})
//codec.compile = null;
codec.export = null;
const format = new ModelFormat({

View File

@ -491,7 +491,7 @@ BARS.defineActions(function() {
Format.codec.write(Format.codec.compile(), ModelMeta.export_path)
} else if (ModelMeta.save_path) {
Codecs.project.write(Codecs.project.compile(), ModelMeta.save_path);
} else if (Format.codec) {
} else if (Format.codec && Format.codec.export) {
Format.codec.export()
}
}
@ -500,7 +500,7 @@ BARS.defineActions(function() {
}
} else {
saveTextures()
if (Format.codec && Format.codec.compile && Format.id != 'skin') {
if (Format.codec && Format.codec.export) {
Format.codec.export()
}
}