Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_curve.c
| Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (Nurb *, nu, nurbs) { | ||||
| td++; | td++; | ||||
| tail++; | tail++; | ||||
| } | } | ||||
| (void)hdata; /* quiet warning */ | (void)hdata; /* quiet warning */ | ||||
| } | } | ||||
| else if (is_prop_edit && head != tail) { | else if (is_prop_edit && head != tail) { | ||||
| calc_distanceCurveVerts(head, tail - 1); | tail->flag |= TD_NOTCONNECTED; | ||||
| head = tail; | td++; | ||||
| tail++; | |||||
| } | } | ||||
| } | } | ||||
| if (is_prop_edit && head != tail) { | if (is_prop_edit && head != tail) { | ||||
| calc_distanceCurveVerts(head, tail - 1); | bool cyclic = (nu->flagu & CU_NURB_CYCLIC) != 0; | ||||
| calc_distanceCurveVerts(head, tail - 1, cyclic); | |||||
| } | } | ||||
| /* TODO - in the case of tilt and radius we can also avoid allocating the | /* TODO - in the case of tilt and radius we can also avoid allocating the | ||||
| * initTransDataCurveHandles but for now just don't change handle types */ | * initTransDataCurveHandles but for now just don't change handle types */ | ||||
| if (ELEM(t->mode, TFM_CURVE_SHRINKFATTEN, TFM_TILT, TFM_DUMMY) == 0) { | if (ELEM(t->mode, TFM_CURVE_SHRINKFATTEN, TFM_TILT, TFM_DUMMY) == 0) { | ||||
| /* sets the handles based on their selection, | /* sets the handles based on their selection, | ||||
| * do this after the data is copied to the TransData */ | * do this after the data is copied to the TransData */ | ||||
| BKE_nurb_handles_test(nu, !hide_handles, use_around_origins_for_handles_test); | BKE_nurb_handles_test(nu, !hide_handles, use_around_origins_for_handles_test); | ||||
| ▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (Nurb *, nu, nurbs) { | ||||
| } | } | ||||
| } | } | ||||
| td++; | td++; | ||||
| tail++; | tail++; | ||||
| } | } | ||||
| } | } | ||||
| else if (is_prop_edit && head != tail) { | else if (is_prop_edit && head != tail) { | ||||
| calc_distanceCurveVerts(head, tail - 1); | tail->flag |= TD_NOTCONNECTED; | ||||
| head = tail; | td++; | ||||
| tail++; | |||||
| } | } | ||||
| } | } | ||||
| if (is_prop_edit && head != tail) { | if (is_prop_edit && head != tail) { | ||||
| calc_distanceCurveVerts(head, tail - 1); | bool cyclic = (nu->flagu & CU_NURB_CYCLIC) != 0; | ||||
| calc_distanceCurveVerts(head, tail - 1, cyclic); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| #undef SEL_F1 | #undef SEL_F1 | ||||
| #undef SEL_F2 | #undef SEL_F2 | ||||
| #undef SEL_F3 | #undef SEL_F3 | ||||
| } | } | ||||
| Show All 34 Lines | |||||