Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_define.c
| Show First 20 Lines • Show All 910 Lines • ▼ Show 20 Lines | if (rna_validate_identifier(identifier, error, false) == 0) { | ||||
| DefRNA.error = true; | DefRNA.error = true; | ||||
| } | } | ||||
| } | } | ||||
| srna = MEM_callocN(sizeof(StructRNA), "StructRNA"); | srna = MEM_callocN(sizeof(StructRNA), "StructRNA"); | ||||
| DefRNA.laststruct = srna; | DefRNA.laststruct = srna; | ||||
| if (srnafrom) { | if (srnafrom) { | ||||
| /* copy from struct to derive stuff, a bit clumsy since we can't | /* Copy from struct to derive stuff, a bit clumsy since we can't | ||||
| * use MEM_dupallocN, data structs may not be alloced but builtin */ | * use #MEM_dupallocN, data structs may not be allocated but builtin. */ | ||||
| memcpy(srna, srnafrom, sizeof(StructRNA)); | memcpy(srna, srnafrom, sizeof(StructRNA)); | ||||
| srna->cont.prophash = NULL; | srna->cont.prophash = NULL; | ||||
| BLI_listbase_clear(&srna->cont.properties); | BLI_listbase_clear(&srna->cont.properties); | ||||
| BLI_listbase_clear(&srna->functions); | BLI_listbase_clear(&srna->functions); | ||||
| srna->py_type = NULL; | srna->py_type = NULL; | ||||
| srna->base = srnafrom; | srna->base = srnafrom; | ||||
| ▲ Show 20 Lines • Show All 3,905 Lines • Show Last 20 Lines | |||||