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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-22 13:48:44 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-22 13:48:44 +0400
commit76879599f529095e1831e498bc5d095307d9611a (patch)
tree7104e342178b72675505d23e2bae158d539b4d46
parent06d57fdae05bad63438d360204c890d7ab81387a (diff)
Shape Key UI
* Curves/Surfaces now have the shape key panel as well, this is new compared to 2.4x. * The previous commit also fixed curve tilt blending for relative keys, this was writing to the wrong memory location. * Minor button tweaks
-rw-r--r--release/scripts/ui/buttons_data_mesh.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/release/scripts/ui/buttons_data_mesh.py b/release/scripts/ui/buttons_data_mesh.py
index a11fb27e1f6..5ae004514bd 100644
--- a/release/scripts/ui/buttons_data_mesh.py
+++ b/release/scripts/ui/buttons_data_mesh.py
@@ -105,7 +105,7 @@ class DATA_PT_shape_keys(DataButtonsPanel):
__label__ = "Shape Keys"
def poll(self, context):
- return (context.object and context.object.type in ('MESH', 'LATTICE'))
+ return (context.object and context.object.type in ('MESH', 'LATTICE', 'CURVE', 'SURFACE'))
def draw(self, context):
layout = self.layout
@@ -122,9 +122,9 @@ class DATA_PT_shape_keys(DataButtonsPanel):
subcol = col.column(align=True)
subcol.itemO("object.shape_key_add", icon='ICON_ZOOMIN', text="")
subcol.itemO("object.shape_key_remove", icon='ICON_ZOOMOUT', text="")
- subcol.itemO("object.shape_key_mirror", icon='ICON_MOD_MIRROR', text="")
if kb:
+ subcol.itemO("object.shape_key_mirror", icon='ICON_MOD_MIRROR', text="")
col.itemS()
@@ -160,7 +160,7 @@ class DATA_PT_shape_keys(DataButtonsPanel):
sub.itemR(kb, "slider_min", text="Min")
sub.itemR(kb, "slider_max", text="Max")
- sub = split.column()
+ sub = split.column(align=True)
sub.itemL(text="Blend:")
sub.item_pointerR(kb, "vertex_group", ob, "vertex_groups", text="")
sub.item_pointerR(kb, "relative_key", key, "keys", text="")
@@ -224,3 +224,4 @@ bpy.types.register(DATA_PT_vertex_groups)
bpy.types.register(DATA_PT_shape_keys)
bpy.types.register(DATA_PT_uv_texture)
bpy.types.register(DATA_PT_vertex_colors)
+