diff options
author | Nathan Vegdahl <cessen@cessen.com> | 2013-01-22 22:41:16 +0400 |
---|---|---|
committer | Nathan Vegdahl <cessen@cessen.com> | 2013-01-22 22:41:16 +0400 |
commit | 9b3d305e5aa7969d3198b06b0fe3b86768d96878 (patch) | |
tree | 059008f8faf706431aac4891e1909719d4a855b8 /rigify | |
parent | ecc896f40392e9ac9ca17c268e468528da781fc6 (diff) |
Rigify: patch from Shinsuke Irie, updating name limits.
Blender increased object name length limit from 21 to 63 at some point,
and I hadn't update Rigify to reflect that. This enables better reliability
with respect to widget shapes.
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rigify/generate.py b/rigify/generate.py index 2a6bb308..3d595b42 100644 --- a/rigify/generate.py +++ b/rigify/generate.py @@ -350,7 +350,7 @@ def generate_rig(context, metarig): # Assign shapes to bones # Object's with name WGT-<bone_name> get used as that bone's shape. for bone in bones: - wgt_name = (WGT_PREFIX + obj.data.bones[bone].name)[:21] # Object names are limited to 21 characters... arg + wgt_name = (WGT_PREFIX + obj.data.bones[bone].name)[:63] # Object names are limited to 63 characters... arg if wgt_name in context.scene.objects: # Weird temp thing because it won't let me index by object name for ob in context.scene.objects: |