diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-11 10:37:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-11 10:37:45 +0300 |
commit | af85639e0e1dbe38e66ad2717baea331b720aa2d (patch) | |
tree | bd09f5d763d336fd1b58c40fb3ef84439d016952 | |
parent | d7e6a6f4de5a03e9b581f1e92415848b6196bcfd (diff) |
Error in last commit (assumed mirror existed)
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 10 |
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; + } } } |