Setting for bedrock UV rotations

This commit is contained in:
JannisX11 2024-04-23 21:01:05 +02:00
parent 932ca226f3
commit 60c1f4ecc0
2 changed files with 6 additions and 2 deletions

View File

@ -465,6 +465,10 @@ const Settings = {
}});
new Setting('stretch_linked', {category: 'edit', value: true});
new Setting('auto_keyframe', {category: 'edit', value: true});
new Setting('bedrock_uv_rotations', {category: 'edit', value: false, name: 'Bedrock UV Rotations (Experimental)', description: 'Enable the experimental bedrock UV rotations feature.', onChange(value) {
Formats.bedrock.uv_rotation = value;
Formats.bedrock_block.uv_rotation = value;
}});
//Grid
new Setting('grids', {category: 'grid', value: true, onChange() {Canvas.buildGrid()}});

View File

@ -1298,7 +1298,7 @@ var entity_format = new ModelFormat({
rotate_cubes: true,
box_uv: true,
optional_box_uv: true,
uv_rotation: true,
uv_rotation: settings.bedrock_uv_rotations.value,
single_texture: true,
bone_rig: true,
centered_grid: true,
@ -1337,7 +1337,7 @@ var block_format = new ModelFormat({
rotate_cubes: true,
box_uv: false,
optional_box_uv: true,
uv_rotation: true,
uv_rotation: settings.bedrock_uv_rotations.value,
single_texture: false,
bone_rig: true,
centered_grid: true,