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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <william@reynish.com>2009-08-01 21:50:51 +0400
committerWilliam Reynish <william@reynish.com>2009-08-01 21:50:51 +0400
commit2c642d1373d53287e416f80c15989089f05ebafa (patch)
tree682c2faacb0a378614339b8c6e731e0396d9f91e
parent7355cff68bb879090af2022997d322d2fb67c700 (diff)
Further improved shape keys UI.
Made value slider stretch to the entire width of the panel, useful for added precision. Also used greying out when shapes are locked.
-rw-r--r--release/ui/buttons_data_mesh.py28
1 files changed, 16 insertions, 12 deletions
diff --git a/release/ui/buttons_data_mesh.py b/release/ui/buttons_data_mesh.py
index 882a4ad639e..e8ab59a96dd 100644
--- a/release/ui/buttons_data_mesh.py
+++ b/release/ui/buttons_data_mesh.py
@@ -123,19 +123,23 @@ class DATA_PT_shape_keys(DataButtonsPanel):
row.itemR(kb, "name")
if ob.active_shape_key_index != 0:
- if not ob.shape_key_lock:
- row = layout.row(align=True)
- row.itemL(text="Value:")
- row.itemR(kb, "value", text="", slider=True)
-
- row = layout.row(align=True);
- row.itemL(text="Range:")
- row.itemR(kb, "slider_min", text="Min")
- row.itemR(kb, "slider_max", text="Max")
-
+
row = layout.row()
- row.item_pointerR(kb, "vertex_group", ob, "vertex_groups", text="")
- row.item_pointerR(kb, "relative_key", key, "keys", text="")
+ row.enabled = ob.shape_key_lock == False
+ row.itemR(kb, "value", slider=True)
+
+ split = layout.split()
+ sub = split.column()
+ sub.enabled = ob.shape_key_lock == False
+ sub.itemL(text="Range:")
+ sub.itemR(kb, "slider_min", text="Min")
+ sub.itemR(kb, "slider_max", text="Max")
+
+ sub = split.column()
+ sub.itemL(text="Blend:")
+ sub.item_pointerR(kb, "vertex_group", ob, "vertex_groups", text="")
+ sub.item_pointerR(kb, "relative_key", key, "keys", text="")
+
else:
row = layout.row()
row.itemR(key, "relative")