diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-02 19:07:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-02 19:07:49 +0300 |
commit | 1d9f90ed42ba61d615dd0188e39cc12f0b71493f (patch) | |
tree | 9238a741403b33613d6fbdb19497f34ffdbb1b68 /source/blender/makesrna/intern/rna_access.c | |
parent | 9ea97203ae2049ea50e7bfbe3e30815eebb5990c (diff) |
- all add object operators now take view_align as an argument, and enter_editmode where its used. Makes running the operator from python pradictable without having to know the user prefs.
- missing return in function
- python error in view3d (assumed active object exists)
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index b7120c58fef..fac18ba7942 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -903,6 +903,9 @@ void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, int value) BooleanPropertyRNA *bprop= (BooleanPropertyRNA*)prop; IDProperty *idprop; + /* just incase other values are passed */ + if(value) value= 1; + if((idprop=rna_idproperty_check(&prop, ptr))) IDP_Int(idprop)= value; else if(bprop->set) |