Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_edge_rotate_normal.c
| Show All 29 Lines | |||||
| #include "BKE_mesh.h" | #include "BKE_mesh.h" | ||||
| #include "BKE_unit.h" | #include "BKE_unit.h" | ||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "transform.h" | #include "transform.h" | ||||
| #include "transform_data.h" | |||||
| #include "transform_mode.h" | #include "transform_mode.h" | ||||
| #include "transform_snap.h" | #include "transform_snap.h" | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /* Transform (Normal Rotation) */ | /* Transform (Normal Rotation) */ | ||||
| /** \name Transform Normal Rotation | /** \name Transform Normal Rotation | ||||
| * \{ */ | * \{ */ | ||||
| Show All 33 Lines | |||||
| 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->spacemtx[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, 0, 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; | ||||
| BMLoopNorEditDataArray *lnors_ed_arr = tc->custom.mode.data; | BMLoopNorEditDataArray *lnors_ed_arr = tc->custom.mode.data; | ||||
| BMLoopNorEditData *lnor_ed = lnors_ed_arr->lnor_editdata; | BMLoopNorEditData *lnor_ed = lnors_ed_arr->lnor_editdata; | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||