Skip to content

Commit 374f257

Browse files
committed
🚧 Fixed Missing Default Variant
- Fixed Blueprints without a `variants` object failing to add a default variant. Causing an invalid model state.
1 parent de1c5ae commit 374f257

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/blueprintFormat.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ export const BLUEPRINT_CODEC = new Blockbench.Codec('animated_java_blueprint', {
302302
Variant.fromJSON(variantJSON)
303303
}
304304
Project.variants = Variant.all
305+
} else {
306+
new Variant('Default', true)
305307
}
306308

307309
if (model.animations) {

0 commit comments

Comments
 (0)