diff --git a/src/blockbenchTypeMods.d.ts b/src/blockbenchTypeMods.d.ts index 61d13cb3..17fb3aaa 100644 --- a/src/blockbenchTypeMods.d.ts +++ b/src/blockbenchTypeMods.d.ts @@ -98,7 +98,6 @@ declare global { isDataPackPath: typeof isDataPackPath blueprintSettingErrors: typeof blueprintSettingErrors openUnexpectedErrorDialog: typeof openUnexpectedErrorDialog - TRANSPARENT_TEXTURE: Texture BLUEPRINT_FORMAT: typeof BLUEPRINT_FORMAT BLUEPRINT_CODEC: typeof BLUEPRINT_CODEC TextDisplay: typeof TextDisplay diff --git a/src/blueprintFormat.ts b/src/blueprintFormat.ts index 8cc9afbd..efb7756f 100644 --- a/src/blueprintFormat.ts +++ b/src/blueprintFormat.ts @@ -7,7 +7,7 @@ import { injectSvelteCompomponent } from './util/injectSvelteComponent' import { toSafeFuntionName } from './util/minecraftUtil' import { addProjectToRecentProjects } from './util/misc' import { Valuable } from './util/stores' -import { TRANSPARENT_TEXTURE, TRANSPARENT_TEXTURE_MATERIAL, Variant } from './variants' +import { Variant } from './variants' import FormatPageSvelte from './components/formatPage.svelte' import { translate } from './util/translation' import { process } from './systems/modelDataFixerUpper' @@ -577,9 +577,6 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({ events.UNLOAD.subscribe(() => clearInterval(updateBoundingBoxIntervalId), true) events.UNINSTALL.subscribe(() => clearInterval(updateBoundingBoxIntervalId), true) - thisProject.materials[TRANSPARENT_TEXTURE.uuid] = TRANSPARENT_TEXTURE_MATERIAL - TRANSPARENT_TEXTURE.updateMaterial() - Project.loadingPromises ??= [] Project.loadingPromises.push( new Promise(resolve => { @@ -669,7 +666,7 @@ export function saveBlueprint() { export function updateRotationLock() { if (!isCurrentFormat()) return BLUEPRINT_FORMAT.rotation_limit = !( - !!Group.selected || + !!Group.first_selected || !!AnimatedJava.API.TextDisplay.selected.length || !!AnimatedJava.API.VanillaItemDisplay.selected.length || !!AnimatedJava.API.VanillaBlockDisplay.selected.length || diff --git a/src/components/variantConfigDialog.svelte b/src/components/variantConfigDialog.svelte index 731baa0a..6f61209a 100644 --- a/src/components/variantConfigDialog.svelte +++ b/src/components/variantConfigDialog.svelte @@ -1,7 +1,7 @@