[Bf-blender-cvs] [af85639] master: Error in last commit (assumed mirror existed)
Campbell Barton
noreply at git.blender.org
Mon Jan 11 08:45:26 CET 2016
Commit: af85639e0e1dbe38e66ad2717baea331b720aa2d
Author: Campbell Barton
Date: Mon Jan 11 18:37:45 2016 +1100
Branches: master
https://developer.blender.org/rBaf85639e0e1dbe38e66ad2717baea331b720aa2d
Error in last commit (assumed mirror existed)
===================================================================
M source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 4e8c2ad..f51fe01 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;
+ }
}
}
More information about the Bf-blender-cvs
mailing list