diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-20 13:17:21 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-20 13:17:21 +0400 |
commit | d80911b8675582dca46ce78c17d5434b66a27f18 (patch) | |
tree | dcb1c32f10273f99fa2e3872f654387fabd27c7d /source/blender/makesrna/intern | |
parent | a1cc5ef8eb5ff4c2991199d286e572f1b6eaf4c6 (diff) |
RNA: ID properties were not being shown as RNA properties anymore, fixed.
Python: fix two warnings (initialize to NULL).
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index f7039d9c756..f52e27686bb 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -87,7 +87,7 @@ static int rna_idproperty_known(CollectionPropertyIterator *iter, void *data) { IDProperty *idprop= (IDProperty*)data; PropertyRNA *prop; - StructRNA *ptype= iter->parent.type; + StructRNA *ptype= iter->builtin_parent.type; /* function to skip any id properties that are already known by RNA, * for the second loop where we go over unknown id properties */ @@ -177,7 +177,7 @@ static void rna_Struct_properties_next(CollectionPropertyIterator *iter) /* try id properties */ if(!iter->valid) { - group= rna_idproperties_get(&iter->parent, 0); + group= rna_idproperties_get(&iter->builtin_parent, 0); if(group) { rna_iterator_listbase_end(iter); @@ -243,7 +243,7 @@ static PointerRNA rna_Struct_functions_get(CollectionPropertyIterator *iter) } /* Builtin properties iterator re-uses the Struct properties iterator, only - * difference is that we need to see the ptr data to the type of the struct + * difference is that we need to set the ptr data to the type of the struct * whose properties we want to iterate over. */ void rna_builtin_properties_begin(CollectionPropertyIterator *iter, PointerRNA *ptr) @@ -260,6 +260,7 @@ void rna_builtin_properties_begin(CollectionPropertyIterator *iter, PointerRNA * newptr.id.data= NULL; iter->parent= newptr; + iter->builtin_parent = *ptr; rna_Struct_properties_begin(iter, &newptr); } |