[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36692] trunk/blender/release/scripts/ startup/bl_ui/properties_data_mesh.py: Button for adding shape keys now creates shapes from base mesh instead of

Nathan Vegdahl cessen at cessen.com
Sat May 14 22:23:06 CEST 2011


Revision: 36692
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36692
Author:   cessen
Date:     2011-05-14 20:23:05 +0000 (Sat, 14 May 2011)
Log Message:
-----------
Button for adding shape keys now creates shapes from base mesh instead of
from the current shape mix.  The old behavior is still accessable from the
menu as "New Shape From Mix".

Checked with Sergey and Bassam that this is a good change.  New users
expect the add shape button to simply add a new blank shape, and get
confused when that is not the case.  It is also really easy to
accidentally have other shape information in a new shape when the
"from mix" behavior is default.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py	2011-05-14 18:54:56 UTC (rev 36691)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py	2011-05-14 20:23:05 UTC (rev 36692)
@@ -46,6 +46,8 @@
         layout.operator("object.shape_key_transfer", icon='COPY_ID')  # icon is not ideal
         layout.operator("object.join_shapes", icon='COPY_ID')  # icon is not ideal
         layout.operator("object.shape_key_mirror", icon='ARROW_LEFTRIGHT')
+        op = layout.operator("object.shape_key_add", icon='ZOOMIN', text="New Shape From Mix")
+        op.from_mix = True
 
 
 class MeshButtonsPanel():
@@ -193,7 +195,8 @@
         col = row.column()
 
         sub = col.column(align=True)
-        sub.operator("object.shape_key_add", icon='ZOOMIN', text="")
+        op = sub.operator("object.shape_key_add", icon='ZOOMIN', text="")
+        op.from_mix = False
         sub.operator("object.shape_key_remove", icon='ZOOMOUT', text="")
         sub.menu("MESH_MT_shape_key_specials", icon='DOWNARROW_HLT', text="")
 




More information about the Bf-blender-cvs mailing list