@@ -12,7 +12,7 @@ import { renderRig, hashRig } from './rigRenderer'
12
12
13
13
export class IntentionalExportError extends Error { }
14
14
15
- async function actuallyExportProject ( ) {
15
+ async function actuallyExportProject ( forceSave = true ) {
16
16
const aj = Project ! . animated_java
17
17
const dialog = openExportProgressDialog ( )
18
18
// Wait for the dialog to open
@@ -88,7 +88,7 @@ async function actuallyExportProject() {
88
88
Project ! . last_used_export_namespace = aj . export_namespace
89
89
console . timeEnd ( 'Exporting project took' )
90
90
91
- saveBlueprint ( )
91
+ if ( forceSave ) saveBlueprint ( )
92
92
dialog . close ( 0 )
93
93
Blockbench . showQuickMessage ( 'Project exported successfully!' , 2000 )
94
94
} catch ( e : any ) {
@@ -106,7 +106,7 @@ async function actuallyExportProject() {
106
106
}
107
107
}
108
108
109
- export async function exportProject ( ) {
109
+ export async function exportProject ( forceSave = true ) {
110
110
if ( ! Project ) return // TODO: Handle this error better
111
111
blueprintSettingErrors . set ( { } )
112
112
const settingsDialog = openBlueprintSettingsDialog ( ) !
@@ -133,5 +133,5 @@ export async function exportProject() {
133
133
}
134
134
135
135
settingsDialog . close ( 0 )
136
- await actuallyExportProject ( )
136
+ await actuallyExportProject ( forceSave )
137
137
}
0 commit comments