[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24052] trunk/blender/release/scripts/ui/ buttons_data_mesh.py: Shape Key UI
Brecht Van Lommel
brecht at blender.org
Thu Oct 22 11:48:44 CEST 2009
Revision: 24052
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24052
Author: blendix
Date: 2009-10-22 11:48:44 +0200 (Thu, 22 Oct 2009)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/blender/release/scripts/ui/buttons_data_mesh.py
Modified: trunk/blender/release/scripts/ui/buttons_data_mesh.py
===================================================================
--- trunk/blender/release/scripts/ui/buttons_data_mesh.py 2009-10-22 09:31:07 UTC (rev 24051)
+++ trunk/blender/release/scripts/ui/buttons_data_mesh.py 2009-10-22 09:48:44 UTC (rev 24052)
@@ -105,7 +105,7 @@
__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 @@
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 @@
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_shape_keys)
bpy.types.register(DATA_PT_uv_texture)
bpy.types.register(DATA_PT_vertex_colors)
+
More information about the Bf-blender-cvs
mailing list