Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_edge_rotate_normal.c
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* Works by getting custom normal from clnor_data, transform, then store */ | /* Works by getting custom normal from clnor_data, transform, then store */ | ||||
| static void applyNormalRotation(TransInfo *t, const int UNUSED(mval[2])) | static void applyNormalRotation(TransInfo *t, const int UNUSED(mval[2])) | ||||
| { | { | ||||
| char str[UI_MAX_DRAW_STR]; | char str[UI_MAX_DRAW_STR]; | ||||
| 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); | ||||
| } | } | ||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| BMEditMesh *em = BKE_editmesh_from_object(tc->obedit); | BMEditMesh *em = BKE_editmesh_from_object(tc->obedit); | ||||
| BMesh *bm = em->bm; | BMesh *bm = em->bm; | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||