Skip to content

Commit f98ddce

Browse files
committed
🛠️ Fix rotation lock issues
1 parent 4c66ee4 commit f98ddce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/blueprintFormat.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ export const BLUEPRINT_FORMAT = new Blockbench.ModelFormat({
646646
texture_meshes: false,
647647
uv_rotation: true,
648648
vertex_color_ambient_occlusion: true,
649+
java_cube_shading_properties: true,
650+
box_uv_float_size: false,
651+
cullfaces: true,
649652
})
650653
BLUEPRINT_CODEC.format = BLUEPRINT_FORMAT
651654

@@ -662,11 +665,11 @@ export function saveBlueprint() {
662665
export function updateRotationLock() {
663666
if (!isCurrentFormat()) return
664667
BLUEPRINT_FORMAT.rotation_limit = !(
665-
Group.selected ||
668+
!!Group.selected ||
666669
!!AnimatedJava.API.TextDisplay.selected.length ||
667670
!!AnimatedJava.API.VanillaItemDisplay.selected.length ||
668671
!!AnimatedJava.API.VanillaBlockDisplay.selected.length ||
669-
!!OutlinerElement.types.camera?.all.length
672+
!!(OutlinerElement.types.camera?.selected && OutlinerElement.types.camera?.selected.length)
670673
)
671674
BLUEPRINT_FORMAT.rotation_snap = BLUEPRINT_FORMAT.rotation_limit
672675
}

0 commit comments

Comments
 (0)