Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_input.c
| Show First 20 Lines • Show All 488 Lines • ▼ Show 20 Lines | void transform_input_update(TransInfo *t, const float fac) | ||||
| if (t->mode == TFM_EDGE_SLIDE) { | if (t->mode == TFM_EDGE_SLIDE) { | ||||
| transform_mode_edge_slide_reproject_input(t); | transform_mode_edge_slide_reproject_input(t); | ||||
| } | } | ||||
| else if (t->mode == TFM_VERT_SLIDE) { | else if (t->mode == TFM_VERT_SLIDE) { | ||||
| transform_mode_vert_slide_reproject_input(t); | transform_mode_vert_slide_reproject_input(t); | ||||
| } | } | ||||
| } | } | ||||
| void transform_input_reset(TransInfo *t, const int mval[2]) | |||||
| { | |||||
| MouseInput *mi = &t->mouse; | |||||
| copy_v2_v2_int(mi->imval, mval); | |||||
| if (ELEM(mi->apply, InputAngle, InputAngleSpring)) { | |||||
| struct InputAngle_Data *data = mi->data; | |||||
| data->mval_prev[0] = mi->imval[0]; | |||||
| data->mval_prev[1] = mi->imval[1]; | |||||
| data->angle = 0.0f; | |||||
| } | |||||
| } | |||||
| /** \} */ | /** \} */ | ||||