Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_curve.c
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (Nurb *, nu, nurbs) { | ||||
| if (bezt_tx & SEL_F2) { | if (bezt_tx & SEL_F2) { | ||||
| countsel++; | countsel++; | ||||
| } | } | ||||
| if (bezt_tx & SEL_F3) { | if (bezt_tx & SEL_F3) { | ||||
| countsel++; | countsel++; | ||||
| } | } | ||||
| countsel_pt++; | countsel_pt++; | ||||
| } | } | ||||
| } | |||||
| if (is_prop_edit) { | if (is_prop_edit) { | ||||
| count += 3; | count += 3; | ||||
| count_pt++; | count_pt++; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| else { | else { | ||||
| for (a = nu->pntsu * nu->pntsv, bp = nu->bp; a > 0; a--, bp++) { | for (a = nu->pntsu * nu->pntsv, bp = nu->bp; a > 0; a--, bp++) { | ||||
| if (bp->hide == 0) { | if (bp->hide == 0) { | ||||
| if (bp->f1 & SELECT) { | if (bp->f1 & SELECT) { | ||||
| countsel++; | countsel++; | ||||
| countsel_pt++; | countsel_pt++; | ||||
| } | } | ||||
| if (is_prop_edit) { | if (is_prop_edit) { | ||||
| ▲ Show 20 Lines • Show All 204 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) { | ||||
| tail->flag |= TD_NOTCONNECTED; | tail->flag |= TD_NOTCONNECTED; | ||||
| td++; | td += 3; | ||||
| tail++; | tail += 3; | ||||
| } | } | ||||
| } | } | ||||
| if (is_prop_edit && head != tail) { | if (is_prop_edit && head != tail) { | ||||
| bool cyclic = (nu->flagu & CU_NURB_CYCLIC) != 0; | bool cyclic = (nu->flagu & CU_NURB_CYCLIC) != 0; | ||||
| calc_distanceCurveVerts(head, tail - 1, cyclic); | 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 | ||||
| ▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines | |||||