Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_curve.c
| Show First 20 Lines • Show All 579 Lines • ▼ Show 20 Lines | static void rna_Curve_body_set(PointerRNA *ptr, const char *value) | ||||
| if (cu->str) { | if (cu->str) { | ||||
| MEM_freeN(cu->str); | MEM_freeN(cu->str); | ||||
| } | } | ||||
| if (cu->strinfo) { | if (cu->strinfo) { | ||||
| MEM_freeN(cu->strinfo); | MEM_freeN(cu->strinfo); | ||||
| } | } | ||||
| cu->str = MEM_mallocN(len_bytes + sizeof(wchar_t), "str"); | cu->str = MEM_mallocN(len_bytes + sizeof(char32_t), "str"); | ||||
| cu->strinfo = MEM_callocN((len_chars + 4) * sizeof(CharInfo), "strinfo"); | cu->strinfo = MEM_callocN((len_chars + 4) * sizeof(CharInfo), "strinfo"); | ||||
| BLI_strncpy(cu->str, value, len_bytes + 1); | BLI_strncpy(cu->str, value, len_bytes + 1); | ||||
| } | } | ||||
| static void rna_Nurb_update_cyclic_u(Main *bmain, Scene *scene, PointerRNA *ptr) | static void rna_Nurb_update_cyclic_u(Main *bmain, Scene *scene, PointerRNA *ptr) | ||||
| { | { | ||||
| Nurb *nu = (Nurb *)ptr->data; | Nurb *nu = (Nurb *)ptr->data; | ||||
| ▲ Show 20 Lines • Show All 1,414 Lines • Show Last 20 Lines | |||||