Skip to content

Commit ee50bb3

Browse files
SnaveSutitgitbutler-client
authored andcommitted
✨ Implement #476 - Add exportAll to global API.
1 parent de6ac71 commit ee50bb3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { openExportProgressDialog } from './dialogs/exportProgress/exportProgres
2828
import { openUnexpectedErrorDialog } from './dialogs/unexpectedError/unexpectedError'
2929
import { BLUEPRINT_FORMAT } from './formats/blueprint'
3030
import { BLUEPRINT_CODEC } from './formats/blueprint/codec'
31+
import { exportAll } from './interface/animatedJavaBarItem'
3132
import { TextDisplay } from './outliner/textDisplay'
3233
import { VanillaBlockDisplay, debugBlockState } from './outliner/vanillaBlockDisplay'
3334
import { VanillaItemDisplay } from './outliner/vanillaItemDisplay'
@@ -82,6 +83,7 @@ const AnimatedJavaApi = {
8283
BLOCKSTATE_REGISTRY,
8384
exportProject,
8485
openInstallPopup,
86+
exportAll,
8587
removeCubesAssociatedWithTexture(texture: Texture) {
8688
const cubes = Cube.all.filter(cube =>
8789
Object.values(cube.faces).some(face => face.texture === texture.uuid)
@@ -127,5 +129,3 @@ EVENTS.PLUGIN_FINISHED_LOADING.subscribe(() => {
127129
openChangelogDialog()
128130
}
129131
})
130-
131-
import './plugin'

src/interface/animatedJavaBarItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function areMultipleBlueprintsOpen() {
7474
return Blockbench.ModelProject.all.filter(p => p.format.id === BLUEPRINT_FORMAT_ID).length > 1
7575
}
7676

77-
async function exportAll(debugMode: boolean) {
77+
export async function exportAll(debugMode: boolean) {
7878
const selectedProject = Project
7979
const blueprints = Blockbench.ModelProject.all.filter(p => p.format.id === BLUEPRINT_FORMAT_ID)
8080
let success = true

0 commit comments

Comments
 (0)