Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_rotate.c
| Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | static void applyRotation(TransInfo *t, const int UNUSED(mval[2])) | ||||
| } | } | ||||
| if (applyNumInput(&t->num, &final)) { | if (applyNumInput(&t->num, &final)) { | ||||
| /* We have to limit the amount of turns to a reasonable number here, | /* We have to limit the amount of turns to a reasonable number here, | ||||
| * to avoid things getting *very* slow, see how applyRotationValue() handles those... */ | * to avoid things getting *very* slow, see how applyRotationValue() handles those... */ | ||||
| final = large_rotation_limit(final); | final = large_rotation_limit(final); | ||||
| } | } | ||||
| else { | else { | ||||
| applySnapping(t, &final); | applySnappingAsGroup(t, &final); | ||||
| if (!(activeSnap(t) && validSnap(t))) { | if (!(activeSnap(t) && validSnap(t))) { | ||||
| transform_snap_increment(t, &final); | transform_snap_increment(t, &final); | ||||
| } | } | ||||
| } | } | ||||
| t->values_final[0] = final; | t->values_final[0] = final; | ||||
| headerRotation(t, str, sizeof(str), final); | headerRotation(t, str, sizeof(str), final); | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||