mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Let Groups remember open state in project files
Fix theme export bug in web app
This commit is contained in:
parent
80bbc9fb04
commit
78552a2040
@ -247,7 +247,7 @@ Object.assign(Blockbench, {
|
||||
resource_id
|
||||
*/
|
||||
if (Blockbench.isWeb) {
|
||||
var file_name = options.name;
|
||||
var file_name = options.name || 'file';
|
||||
if (options.extensions && file_name.substr(-options.extensions[0].length) != options.extensions[0]) {
|
||||
file_name += '.' + options.extensions[0];
|
||||
}
|
||||
@ -257,7 +257,6 @@ Object.assign(Blockbench, {
|
||||
} else {
|
||||
|
||||
if (options.savetype === 'image') {
|
||||
console.log(options, file_name)
|
||||
saveAs(options.content, file_name, {})
|
||||
|
||||
} else if (options.savetype === 'zip' || options.savetype === 'buffer' || options.savetype === 'binary') {
|
||||
|
@ -360,6 +360,7 @@ class Group extends OutlinerNode {
|
||||
base_group.visibility = this.visibility;
|
||||
base_group.export = this.export;
|
||||
base_group.autouv = this.autouv;
|
||||
base_group.isOpen = this.isOpen;
|
||||
return base_group;
|
||||
}
|
||||
compile(undo) {
|
||||
|
Loading…
Reference in New Issue
Block a user