Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_rotate.c
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | static void applyRotation(TransInfo *t, const int UNUSED(mval[2])) | ||||
| float final; | float final; | ||||
| final = t->values[0]; | final = t->values[0]; | ||||
| snapGridIncrement(t, &final); | snapGridIncrement(t, &final); | ||||
| float axis_final[3]; | float axis_final[3]; | ||||
| copy_v3_v3(axis_final, t->orient_matrix[t->orient_axis]); | copy_v3_v3(axis_final, t->spacemtx[t->orient_axis]); | ||||
| if ((t->con.mode & CON_APPLY) && t->con.applyRot) { | if ((t->con.mode & CON_APPLY) && t->con.applyRot) { | ||||
| t->con.applyRot(t, NULL, NULL, axis_final, NULL); | t->con.applyRot(t, NULL, NULL, axis_final, NULL); | ||||
| } | } | ||||
| applySnapping(t, &final); | applySnapping(t, &final); | ||||
| if (applyNumInput(&t->num, &final)) { | if (applyNumInput(&t->num, &final)) { | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||