RNA: correct enum flag callback

Was returning NULL, auto-completing:

    bpy.types.Material.bl_rna.properties["type"].

Would crash, accessing 'default_flag', thanks to @lukastoenne for investigating.
This commit is contained in:
Campbell Barton 2015-02-24 19:41:48 +11:00
parent a585cbd2af
commit 625101da99
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ static EnumPropertyItem *rna_EnumProperty_default_itemf(bContext *C, PointerRNA
/* incompatible default attributes */
if ((prop_parent->flag & PROP_ENUM_FLAG) != (prop->flag & PROP_ENUM_FLAG)) {
return NULL;
return DummyRNA_NULL_items;
}
if ((eprop->itemf == NULL) ||