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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-03 13:53:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-03 13:53:06 +0400
commit6d9de6a72b74191986ae77ff39079d1e9e68f58b (patch)
treefef3c81044e9dc10d85be2213932470b52d11fe3 /source/blender/editors/sculpt_paint/paint_utils.c
parent905cb1639ad8f82502ecf9f1701963972f96080e (diff)
fix [#35975] "Select Linked" = "Select All" in Weight Paint mode?
looks like this was broken since bmesh merge.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c
index 4670a8294f6..8db9215a376 100644
--- a/source/blender/editors/sculpt_paint/paint_utils.c
+++ b/source/blender/editors/sculpt_paint/paint_utils.c
@@ -431,8 +431,9 @@ void PAINT_OT_face_select_linked(wmOperatorType *ot)
static int paint_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
{
- int mode = RNA_boolean_get(op->ptr, "extend") ? 1 : 0;
- paintface_select_linked(C, CTX_data_active_object(C), event->mval, mode);
+ const bool select = !RNA_boolean_get(op->ptr, "deselect");
+ view3d_operator_needs_opengl(C);
+ paintface_select_linked(C, CTX_data_active_object(C), event->mval, select);
ED_region_tag_redraw(CTX_wm_region(C));
return OPERATOR_FINISHED;
}
@@ -448,7 +449,7 @@ void PAINT_OT_face_select_linked_pick(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
- RNA_def_boolean(ot->srna, "extend", 0, "Extend", "Extend the existing selection");
+ RNA_def_boolean(ot->srna, "deselect", 0, "Deselect", "Deselect rather than select items");
}