Bug Fix: Generate Layout. Shapes with a large name.
authorOscurart Eugenio Pignataro <info@oscurart.com.ar>
Mon, 25 Feb 2013 14:04:35 +0000 (14:04 +0000)
committerOscurart Eugenio Pignataro <info@oscurart.com.ar>
Mon, 25 Feb 2013 14:04:35 +0000 (14:04 +0000)
oscurart_tools/oscurart_shapes.py

index 2b69cc970da95d5f2ee888a8b71203ec86f76298..f5f9f92aa1573a68944786db1ae15f1010d702c6 100644 (file)
@@ -16,7 +16,7 @@ def DefSplitShapes(self,ACTIVESHAPE,LAYOUTCOMPAT):
     LENKB=len(ACTOBJ.data.shape_keys.key_blocks)
     INDEX=ACTOBJ.active_shape_key_index    
     
-    if not LAYOUTCOMPAT:
+    if  LAYOUTCOMPAT:
         for SHAPE in ACTOBJ.data.shape_keys.key_blocks:
             if len(SHAPE.name) > 7:
                 SHAPE.name=SHAPE.name[:8]
@@ -57,7 +57,7 @@ class CreaShapes(bpy.types.Operator):
         return context.object is not None
 
     activeshape=bpy.props.BoolProperty(name="Only Active Shape", default=False)  
-    layoutcompat=bpy.props.BoolProperty(name="Layout Compatible", default=False)
+    layoutcompat=bpy.props.BoolProperty(name="Layout Compatible", default=True)
 
     def execute(self, context):