diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal_types.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_internal_types.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_internal_types.h b/source/blender/makesrna/intern/rna_internal_types.h index 434e4ee6fe9..db2063b899c 100644 --- a/source/blender/makesrna/intern/rna_internal_types.h +++ b/source/blender/makesrna/intern/rna_internal_types.h @@ -154,6 +154,11 @@ struct PropertyRNA { /* raw access */ int rawoffset; RawPropertyType rawtype; + + /* This is used for accessing props/functions of this property + * any property can have this but should only be used for collections and arrays + * since python will convert int/bool/pointer's */ + struct StructRNA *srna; /* attributes attached directly to this collection */ }; /* Property Types */ @@ -255,11 +260,8 @@ typedef struct CollectionPropertyRNA { PropCollectionLengthFunc length; /* optional */ PropCollectionLookupIntFunc lookupint; /* optional */ PropCollectionLookupStringFunc lookupstring; /* optional */ - FunctionRNA *add, *remove; - - PropertyRNA *active; - struct StructRNA *type; + struct StructRNA *item_type; /* the type of this item */ } CollectionPropertyRNA; |