Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curve/editcurve_add.c
| Show First 20 Lines • Show All 479 Lines • ▼ Show 20 Lines | case CU_PRIM_DONUT: /* torus */ | ||||
| while (a-- > 0) { | while (a-- > 0) { | ||||
| bp->f1 |= SELECT; | bp->f1 |= SELECT; | ||||
| bp++; | bp++; | ||||
| } | } | ||||
| } | } | ||||
| break; | break; | ||||
| default: /* should never happen */ | default: /* should never happen */ | ||||
| BLI_assert(!"invalid nurbs type"); | BLI_assert_msg(0, "invalid nurbs type"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| BLI_assert(nu != NULL); | BLI_assert(nu != NULL); | ||||
| if (nu) { /* should always be set */ | if (nu) { /* should always be set */ | ||||
| nu->flag |= CU_SMOOTH; | nu->flag |= CU_SMOOTH; | ||||
| cu->actnu = BLI_listbase_count(editnurb); | cu->actnu = BLI_listbase_count(editnurb); | ||||
| ▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines | |||||