mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix #2723 Multiple images in the same imare project can overwrite each other on save
This commit is contained in:
parent
7c29703b3c
commit
c515592598
@ -1,7 +1,7 @@
|
||||
(function() {
|
||||
|
||||
let codec = new Codec('image', {
|
||||
name: tl('format.name'),
|
||||
name: tl('format.image'),
|
||||
extension: 'png',
|
||||
remember: true,
|
||||
load_filter: {
|
||||
|
@ -576,7 +576,9 @@ BARS.defineActions(function() {
|
||||
Codecs.project.write(Codecs.project.compile(), Project.save_path);
|
||||
}
|
||||
if (Project.export_path && export_codec?.compile) {
|
||||
export_codec.write(export_codec.compile(), Project.export_path)
|
||||
if (export_codec.id != 'image') {
|
||||
export_codec.write(export_codec.compile(), Project.export_path)
|
||||
}
|
||||
|
||||
} else if (export_codec?.export && !Project.save_path) {
|
||||
if (export_codec.id === 'project' || settings.dialog_save_codec.value == false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user