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()
|
EditSession.initNewModel()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
//codec.compile = null;
|
codec.export = null;
|
||||||
|
|
||||||
|
|
||||||
const format = new ModelFormat({
|
const format = new ModelFormat({
|
||||||
|
@ -491,7 +491,7 @@ BARS.defineActions(function() {
|
|||||||
Format.codec.write(Format.codec.compile(), ModelMeta.export_path)
|
Format.codec.write(Format.codec.compile(), ModelMeta.export_path)
|
||||||
} else if (ModelMeta.save_path) {
|
} else if (ModelMeta.save_path) {
|
||||||
Codecs.project.write(Codecs.project.compile(), 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()
|
Format.codec.export()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -500,7 +500,7 @@ BARS.defineActions(function() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
saveTextures()
|
saveTextures()
|
||||||
if (Format.codec && Format.codec.compile && Format.id != 'skin') {
|
if (Format.codec && Format.codec.export) {
|
||||||
Format.codec.export()
|
Format.codec.export()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user