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:
authorGaia Clary <gaia.clary@machinimatrix.org>2013-06-26 01:00:00 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2013-06-26 01:00:00 +0400
commiteacd013cb40d23964a1cab08279c9feffa54997b (patch)
treed8f0ffd4256d16d1f108dd9b06323c1f696ec83e /source/blender/editors/space_view3d/view3d_buttons.c
parent8245bdca2b89b9af3ca42399a7e83dae76653040 (diff)
disable vertex editing when weight group is locked
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_buttons.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_buttons.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index c3686c601d8..d234b176dcf 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -877,6 +877,9 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa)
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 */