diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-20 12:17:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-20 12:17:47 +0400 |
commit | 30fdfc37dd5dbef7e84e688ce620b13e8713045e (patch) | |
tree | 5e07b9f2789c21ffad2bbf7f87c97db601961a0c /source/blender/makesrna/intern/rna_rna.c | |
parent | efb48fcbbb226e9a2d686a1d952cdedad7cdf941 (diff) |
Fix for crash generating docs (enums with only callbacks)
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index 479f70531e5..ae0841b4e28 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -821,7 +821,9 @@ static EnumPropertyItem *rna_EnumProperty_default_itemf(bContext *C, PointerRNA (ptr->type == &RNA_EnumProperty) || (C == NULL)) { - return eprop->item; + if (eprop->item) { + return eprop->item; + } } return eprop->itemf(C, ptr, prop, r_free); |