Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/curve.c
| Show First 20 Lines • Show All 408 Lines • ▼ Show 20 Lines | if (cu->type == OB_FONT) { | ||||
| BLI_strncpy(cu->str, "Text", 12); | BLI_strncpy(cu->str, "Text", 12); | ||||
| cu->len = cu->len_char32 = cu->pos = 4; | cu->len = cu->len_char32 = cu->pos = 4; | ||||
| cu->strinfo = MEM_calloc_arrayN(12, sizeof(CharInfo), "strinfo new"); | cu->strinfo = MEM_calloc_arrayN(12, sizeof(CharInfo), "strinfo new"); | ||||
| cu->totbox = cu->actbox = 1; | cu->totbox = cu->actbox = 1; | ||||
| cu->tb = MEM_calloc_arrayN(MAXTEXTBOX, sizeof(TextBox), "textbox"); | cu->tb = MEM_calloc_arrayN(MAXTEXTBOX, sizeof(TextBox), "textbox"); | ||||
| cu->tb[0].w = cu->tb[0].h = 0.0; | cu->tb[0].w = cu->tb[0].h = 0.0; | ||||
| } | } | ||||
| else if (cu->type == OB_SURF) { | else if (cu->type == OB_SURF) { | ||||
| cu->flag |= CU_3D; | |||||
| cu->resolv = 4; | cu->resolv = 4; | ||||
| } | } | ||||
| cu->bevel_profile = NULL; | cu->bevel_profile = NULL; | ||||
| } | } | ||||
| Curve *BKE_curve_add(Main *bmain, const char *name, int type) | Curve *BKE_curve_add(Main *bmain, const char *name, int type) | ||||
| { | { | ||||
| Curve *cu; | Curve *cu; | ||||
| ▲ Show 20 Lines • Show All 5,200 Lines • Show Last 20 Lines | |||||