minor pyapi changes

This commit is contained in:
2009-12-24 11:40:14 +00:00
parent 73c62183f8
commit bb452f29d6
3 changed files with 12 additions and 14 deletions

View File

@@ -226,10 +226,9 @@ IDProperty *RNA_struct_idproperties(PointerRNA *ptr, int create)
return NULL;
}
int RNA_struct_idproperties_check(PointerRNA *ptr)
int RNA_struct_idproperties_check(StructRNA *srna)
{
StructRNA *type= ptr->type;
return (type && type->idproperties) ? 1 : 0;
return (srna && srna->idproperties) ? 1 : 0;
}
static IDProperty *rna_idproperty_find(PointerRNA *ptr, const char *name)