diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-17 16:28:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-17 16:31:59 +0400 |
commit | 50b2c78ad8b6f994ceba77f548c39b2e510a98be (patch) | |
tree | 1fee99a7496293112729e30117b69c61fa3bc3e9 /source/blender/makesrna/RNA_access.h | |
parent | d607a70795d0478eb70bbb05cf297f871a97cd4e (diff) |
RNA: assert on NULL return values from itemf callbacks
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index 07c7d3e58c3..0941f022901 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -786,10 +786,10 @@ bool RNA_enum_description(EnumPropertyItem *item, const int value, const char ** int RNA_enum_from_value(EnumPropertyItem *item, const int value); int RNA_enum_from_identifier(EnumPropertyItem *item, const char *identifier); -void RNA_property_enum_items(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, EnumPropertyItem **item, - int *r_totitem, bool *r_free); -void RNA_property_enum_items_gettexted(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, EnumPropertyItem **item, - int *r_totitem, bool *r_free); +void RNA_property_enum_items(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, + EnumPropertyItem **item, int *r_totitem, bool *r_free); +void RNA_property_enum_items_gettexted(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, + EnumPropertyItem **r_item, int *r_totitem, bool *r_free); bool RNA_property_enum_value(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *identifier, int *r_value); bool RNA_property_enum_identifier(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **identifier); bool RNA_property_enum_name(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **name); |