[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57744] trunk/blender/source/blender/ editors/space_view3d/view3d_buttons.c: disable vertex editing when weight group is locked

Gaia Clary gaia.clary at machinimatrix.org
Tue Jun 25 23:00:01 CEST 2013


Revision: 57744
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57744
Author:   gaiaclary
Date:     2013-06-25 21:00:00 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
disable vertex editing when weight group is locked

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c	2013-06-25 20:52:33 UTC (rev 57743)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c	2013-06-25 21:00:00 UTC (rev 57744)
@@ -877,6 +877,9 @@
 					                xco, yco, (x = UI_UNIT_X * 4), UI_UNIT_Y,
 					                &dw->weight, 0.0, 1.0, 1, 3, "");
 					uiButSetFlag(but, UI_TEXT_LEFT);
+					if (dg->flag & DG_LOCK_WEIGHT) {
+						uiButSetFlag(but, UI_BUT_DISABLED);
+					}
 					xco += x;
 
 					/* The weight group paste function */




More information about the Bf-blender-cvs mailing list