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>2016-01-11 10:37:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-11 10:37:45 +0300
commitaf85639e0e1dbe38e66ad2717baea331b720aa2d (patch)
treebd09f5d763d336fd1b58c40fb3ef84439d016952 /source/blender/editors/sculpt_paint
parentd7e6a6f4de5a03e9b581f1e92415848b6196bcfd (diff)
Error in last commit (assumed mirror existed)
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 4e8c2ad1c18..f51fe013775 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -2143,10 +2143,12 @@ static bool wpaint_stroke_test_start(bContext *C, wmOperator *op, const float UN
BKE_report(op->reports, RPT_WARNING, "Active group is locked, aborting");
return false;
}
- dg = BLI_findlink(&ob->defbase, vgroup_index.mirror);
- if (dg->flag & DG_LOCK_WEIGHT) {
- BKE_report(op->reports, RPT_WARNING, "Mirror group is locked, aborting");
- return false;
+ if (vgroup_index.mirror != -1) {
+ dg = BLI_findlink(&ob->defbase, vgroup_index.mirror);
+ if (dg->flag & DG_LOCK_WEIGHT) {
+ BKE_report(op->reports, RPT_WARNING, "Mirror group is locked, aborting");
+ return false;
+ }
}
}