diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-11 13:39:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-11 13:39:37 +0400 |
commit | 10d18e5b5f279f99ecc6d6304a580f581408d92c (patch) | |
tree | d8f9bb9e171952408e874af8a349c1bbf6452b21 /source/blender/makesrna | |
parent | 39231c90dd5b986612cffd00fe65760430e04c83 (diff) |
code cleanup: use min/max inline functions rather than macros & simplify loop
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index d36c0bbaf4a..4c1c377cb9f 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1659,8 +1659,9 @@ void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, int value) IDP_Int(idprop) = value; rna_idproperty_touch(idprop); } - else if (bprop->set) + else if (bprop->set) { bprop->set(ptr, value); + } else if (prop->flag & PROP_EDITABLE) { IDPropertyTemplate val = {0}; IDProperty *group; |