[Bf-blender-cvs] [cad1e40] soc-2014-shapekey: Don't draw shape key values in Absolute mode

Grigory Revzin noreply at git.blender.org
Mon Jul 21 13:22:10 CEST 2014


Commit: cad1e4099555dd25d8f1852e085e8dde97d1c5ce
Author: Grigory Revzin
Date:   Mon Jul 21 15:21:41 2014 +0400
Branches: soc-2014-shapekey
https://developer.blender.org/rBcad1e4099555dd25d8f1852e085e8dde97d1c5ce

Don't draw shape key values in Absolute mode

===================================================================

M	release/scripts/startup/bl_ui/properties_data_mesh.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index b99e8dd..a1a5190 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -86,7 +86,7 @@ class MESH_UL_shape_keys(UIList):
     def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
         # assert(isinstance(item, bpy.types.ShapeKey)
         obj = active_data
-        # key = data
+        key = data
         key_block = item
         if self.layout_type in {'DEFAULT', 'COMPACT'}:
             split = layout.split(0.66, False)
@@ -94,7 +94,7 @@ class MESH_UL_shape_keys(UIList):
             row = split.row(align=True)
             if key_block.mute:
                 row.active = False
-            if not item.relative_key or index > 0:
+            if not item.relative_key or index > 0 and key.use_relative:
                 draw_shape_value(obj, key_block, row)
             else:
                 row.label(text="")




More information about the Bf-blender-cvs mailing list