Make rotation_snap false by default

This commit is contained in:
JannisX11 2022-11-08 21:35:29 +01:00
parent 883c5cf105
commit 14c9e5c094
3 changed files with 3 additions and 2 deletions

View File

@ -253,7 +253,7 @@ new Property(ModelFormat, 'boolean', 'meshes');
new Property(ModelFormat, 'boolean', 'texture_meshes');
new Property(ModelFormat, 'boolean', 'locators');
new Property(ModelFormat, 'boolean', 'rotation_limit');
new Property(ModelFormat, 'boolean', 'rotation_snap', {default: true});
new Property(ModelFormat, 'boolean', 'rotation_snap');
new Property(ModelFormat, 'boolean', 'uv_rotation');
new Property(ModelFormat, 'boolean', 'java_face_properties');
new Property(ModelFormat, 'boolean', 'select_texture_for_particles');

View File

@ -486,6 +486,7 @@ var format = new ModelFormat({
vertex_color_ambient_occlusion: true,
rotate_cubes: true,
rotation_limit: true,
rotation_snap: true,
optional_box_uv: true,
uv_rotation: true,
java_face_properties: true,

View File

@ -837,7 +837,7 @@ function moveElementsInSpace(difference, axis) {
//Rotate
function getRotationInterval(event) {
if (Format.rotation_limit && Format.rotation_snap) {
if (Format.rotation_snap) {
return 22.5;
} else if ((event.shiftKey || Pressing.overrides.shift) && (event.ctrlOrCmd || Pressing.overrides.ctrl)) {
return 0.25;