diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-06-26 01:00:00 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-06-26 01:00:00 +0400 |
commit | eacd013cb40d23964a1cab08279c9feffa54997b (patch) | |
tree | d8f0ffd4256d16d1f108dd9b06323c1f696ec83e /source/blender/editors/space_view3d/view3d_buttons.c | |
parent | 8245bdca2b89b9af3ca42399a7e83dae76653040 (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.c | 3 |
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 */ |