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-07-01 23:30:41 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2013-07-01 23:30:41 +0400
commit11145c7c22e29ed635c2bd729bd36c15fc7b0240 (patch)
treedf04b4528cb9cacadc7fef6c87bc9e0a1a2755d1 /source/blender/editors/space_view3d/view3d_buttons.c
parent472f7464856dd4c6edb6885b99e57041a229e31c (diff)
Restrict Weight Edit Panel to mesh/lattice Edit and Weight Paint vertex selection mode
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, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index daed039ee28..474a30b6635 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -798,7 +798,8 @@ static int view3d_panel_vgroup_poll(const bContext *C, PanelType *UNUSED(pt))
{
Scene *scene = CTX_data_scene(C);
Object *ob = OBACT;
- if (ob && ((ob->mode & OB_MODE_EDIT) || (ob->mode & OB_MODE_WEIGHT_PAINT))) {
+ if (ob && (ED_vgroup_object_in_edit_mode(ob) ||
+ ED_vgroup_object_in_wpaint_vert_select(ob))) {
MDeformVert *dvert_act = ED_mesh_active_dvert_get_only(ob);
if (dvert_act) {
return (dvert_act->totweight != 0);