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 */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs