diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-11 17:32:20 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-11 17:32:20 +0400 |
commit | b775f1bb322a6277916c24ca282b899532a52e96 (patch) | |
tree | acb675f4b9c744edf26bf65b359d150488974d4f /source/blender/makesrna/intern/rna_access.c | |
parent | 0096a3dee2082d5dd15278a2e5627b6446f18e0a (diff) |
2.5:
* Code to start moving 3D view header and panels to python, at
the moment the View menu and one empty panel is in python. The
C header code is wrapped in one template, so parts of that can
be moved over while still keeping things working.
* Fix for mistake in RNA enum commit yesterday, and some warning
fixes.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index f20df81d6ad..d6ca03c85a2 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -650,9 +650,10 @@ void RNA_property_enum_items(bContext *C, PointerRNA *ptr, PropertyRNA *prop, En if(C && eprop->itemf) { *item= eprop->itemf(C, ptr, free); - if(totitem) + if(totitem) { for(tot=0; (*item)[tot].identifier; tot++); - *totitem= tot; + *totitem= tot; + } } else { *item= eprop->item; |