diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-13 19:20:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-13 19:20:18 +0300 |
commit | 3449d3f9b3db78a89ce033f77b38fa6f75e41342 (patch) | |
tree | d4894a08913d1b905db7860c13b510cd309852ae /release/scripts/modules/rigify | |
parent | 61da7bb8660228708b1f540e9012446276d6a5e6 (diff) |
use python3 syntax for defining a set.
Diffstat (limited to 'release/scripts/modules/rigify')
-rw-r--r-- | release/scripts/modules/rigify/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/rigify/__init__.py b/release/scripts/modules/rigify/__init__.py index 519784e8507..9e59f0965e0 100644 --- a/release/scripts/modules/rigify/__init__.py +++ b/release/scripts/modules/rigify/__init__.py @@ -233,7 +233,7 @@ def generate_rig(context, obj_orig, prefix="ORG-", META_DEF=True): # leg.ik and arm.fk could not be blended. results = OrderedDict() - bone_names_pre = set([bone.name for bone in arm.bones]) + bone_names_pre = {bone.name for bone in arm.bones} for type_name, type_func in bone_typeinfos[bone_name]: # this bones definition of the current typeinfo @@ -260,7 +260,7 @@ def generate_rig(context, obj_orig, prefix="ORG-", META_DEF=True): blend_bone_list(obj, definition, result_submod[0], result_submod[1], target_bone=bone_name) - bone_names_post = set([bone.name for bone in arm.bones]) + bone_names_post = {bone.name for bone in arm.bones} # Store which bones were created from this one bone_genesis[bone_name] = list(bone_names_post - bone_names_pre) |