diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-05 00:10:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-05 00:10:51 +0300 |
commit | c79cf56b69ecf3f49c220ce6dea626caa48e089b (patch) | |
tree | 5155e9255aa4e4c2942849a8f86437825ccc7ae3 /release/scripts/modules | |
parent | 2034a77a4574314cc1eff2193630b62ee239c194 (diff) |
dict.get() defaults to None as the second arg. no need to supply it.
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/rigify_utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/modules/rigify_utils.py b/release/scripts/modules/rigify_utils.py index 371792a3633..83b23b28869 100644 --- a/release/scripts/modules/rigify_utils.py +++ b/release/scripts/modules/rigify_utils.py @@ -129,7 +129,7 @@ def blend_bone_list(obj, apply_bones, from_bones, to_bones, target_bone=None, ta target_bone = apply_bones[-1] # default to the last bone prop_pbone = obj.pose.bones[target_bone] - if prop_pbone.get(target_bone, None) is None: + if prop_pbone.get(target_bone) is None: prop = rna_idprop_ui_prop_get(prop_pbone, target_prop, create=True) prop_pbone[target_prop] = blend_default prop["soft_min"] = 0.0 @@ -402,9 +402,9 @@ def _bone_class_instance_update(self): for member in self.attr_names: name = getattr(self, member, None) if name is not None: - setattr(self, member + "_b", bbones.get(name, None)) - setattr(self, member + "_p", pbones.get(name, None)) - setattr(self, member + "_e", ebones.get(name, None)) + setattr(self, member + "_b", bbones.get(name)) + setattr(self, member + "_p", pbones.get(name)) + setattr(self, member + "_e", ebones.get(name)) def _bone_class_instance_rename(self, attr, new_name): |