File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,7 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
524
524
} ,
525
525
} ,
526
526
527
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
527
528
onSetup ( project , newModel ) {
528
529
if ( ! Project ) return
529
530
console . log ( 'Animated Java Blueprint format setup' )
@@ -540,9 +541,6 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
540
541
541
542
Project . variants ??= [ ]
542
543
Project . last_used_export_namespace = Project . animated_java . export_namespace
543
- if ( newModel || Project . variants . length === 0 ) {
544
- new Variant ( 'Default' , true )
545
- }
546
544
const updateBoundingBoxIntervalId = setInterval ( ( ) => {
547
545
updateBoundingBox ( )
548
546
} , 500 )
@@ -569,6 +567,8 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
569
567
570
568
Project ! . materials [ TRANSPARENT_TEXTURE . uuid ] = TRANSPARENT_TEXTURE_MATERIAL
571
569
TRANSPARENT_TEXTURE . updateMaterial ( )
570
+
571
+ if ( Variant . all . length === 0 ) new Variant ( 'Default' , true )
572
572
Variant . selectDefault ( )
573
573
} )
574
574
} ,
You can’t perform that action at this time.
0 commit comments