@@ -3,7 +3,7 @@ import { BillboardMode, BoneConfig, LocatorConfig } from './nodeConfigs'
33import ProjectTitleSvelte from './components/projectTitle.svelte'
44import { PACKAGE } from './constants'
55import { events } from './util/events'
6- import { injectSvelteCompomponent } from './util/injectSvelte '
6+ import { injectSvelteCompomponent } from './util/injectSvelteComponent '
77import { toSafeFuntionName } from './util/minecraftUtil'
88import { addProjectToRecentProjects } from './util/misc'
99import { Valuable } from './util/stores'
@@ -147,6 +147,7 @@ export interface IBlueprintFormatJSON {
147147export function convertToBlueprint ( ) {
148148 // Convert the current project to a Blueprint
149149 // NOTE - Nothing needs to be done here yet. The default functionality is sufficient.
150+ Project ! . save_path = ''
150151}
151152
152153export function getDefaultProjectSettings ( ) : ModelProject [ 'animated_java' ] {
@@ -222,7 +223,7 @@ export const BLUEPRINT_CODEC = new Blockbench.Codec('animated_java_blueprint', {
222223
223224 Project . loadingPromises = [ ]
224225
225- Project . save_path = model . meta . save_location || path
226+ Project . save_path = path
226227
227228 if ( model . meta . box_uv !== undefined ) {
228229 Project . box_uv = model . meta . box_uv
@@ -526,8 +527,8 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
526527 created ( ) {
527528 void injectSvelteCompomponent ( {
528529 elementSelector : ( ) => $ ( '#format_page_animated_java_blueprint_mount' ) [ 0 ] ,
529- svelteComponent : FormatPageSvelte ,
530- svelteComponentProperties : { format : BLUEPRINT_FORMAT } ,
530+ component : FormatPageSvelte ,
531+ props : { } ,
531532 } )
532533 } ,
533534 template : `<div id="format_page_animated_java_blueprint_mount" style="display: flex; flex-direction: column; flex-grow: 1;"></div>` ,
@@ -584,8 +585,8 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
584585 }
585586 } ,
586587 prepend : true ,
587- svelteComponent : ProjectTitleSvelte ,
588- svelteComponentProperties : { pluginMode : thisProject . pluginMode } ,
588+ component : ProjectTitleSvelte ,
589+ props : { pluginMode : thisProject . pluginMode } ,
589590 } )
590591
591592 if ( Variant . all . length === 0 ) new Variant ( 'Default' , true )
0 commit comments