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:
authorAntony Riakiotakis <kalast@gmail.com>2013-01-01 15:08:05 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-01-01 15:08:05 +0400
commitccf27a3c346335cc0146a034239df9208a6859e0 (patch)
tree95cf6876e23208d3b2f229fc79427eb1f08e74c2 /source/blender/editors/sculpt_paint
parentd0981c279b9705e076045c7af7faf6e90937cd96 (diff)
Fix: weight painting operated only for selected vertices in edit mode.
We only need this in case vertex selection is enabled.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 6a61a6c45dc..819305f9508 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -2342,7 +2342,7 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
unsigned int i;
for (i = 0; i < totvert; i++) {
- me->dvert[i].flag = (me->mvert[i].flag & SELECT);
+ me->dvert[i].flag = use_vert_sel ? (me->mvert[i].flag & SELECT) : SELECT;
}
if (brush->vertexpaint_tool == PAINT_BLEND_BLUR) {