Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Vegdahl <cessen@cessen.com>2013-01-22 22:41:16 +0400
committerNathan Vegdahl <cessen@cessen.com>2013-01-22 22:41:16 +0400
commit9b3d305e5aa7969d3198b06b0fe3b86768d96878 (patch)
tree059008f8faf706431aac4891e1909719d4a855b8 /rigify/generate.py
parentecc896f40392e9ac9ca17c268e468528da781fc6 (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/generate.py')
-rw-r--r--rigify/generate.py2
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: