Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_access.c
| Show First 20 Lines • Show All 7,717 Lines • ▼ Show 20 Lines | if ((array_len == 0) || (prop_index < array_len)) { | ||||
| r_anim_rna->prop_index = array_len ? prop_index : -1; | r_anim_rna->prop_index = array_len ? prop_index : -1; | ||||
| return true; | return true; | ||||
| } | } | ||||
| else { | else { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| static char rna_struct_state_bl_origin[64]; | |||||
| void RNA_struct_state_bl_origin_set(const char *name) | |||||
| { | |||||
| if (name) { | |||||
| BLI_strncpy(rna_struct_state_bl_origin, name, sizeof(rna_struct_state_bl_origin)); | |||||
| } | |||||
| else { | |||||
| rna_struct_state_bl_origin[0] = '\0'; | |||||
| } | |||||
| } | |||||
| const char *RNA_struct_state_bl_origin_get(void) | |||||
| { | |||||
| if (rna_struct_state_bl_origin[0]) { | |||||
| return rna_struct_state_bl_origin; | |||||
| } | |||||
| return NULL; | |||||
| } | |||||