mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix issue with saving skin on desktop app
This commit is contained in:
parent
9cc76e62c2
commit
f7edc3de3b
@ -155,7 +155,7 @@ const codec = new Codec('skin_model', {
|
||||
EditSession.initNewModel()
|
||||
},
|
||||
})
|
||||
//codec.compile = null;
|
||||
codec.export = null;
|
||||
|
||||
|
||||
const format = new ModelFormat({
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user