Fix brush reset (missing notifier)

D2843 by @uvwxyz
This commit is contained in:
Campbell Barton 2017-10-05 12:32:24 +11:00 committed by Bastien Montagne
parent 6b2d1f63db
commit 98dc9072e5
1 changed files with 7 additions and 2 deletions

View File

@ -558,9 +558,14 @@ static int brush_reset_exec(bContext *C, wmOperator *UNUSED(op))
if (!ob || !brush) return OPERATOR_CANCELLED;
if (ob->mode & OB_MODE_SCULPT)
BKE_brush_sculpt_reset(brush);
/* TODO: other modes */
if (ob->mode & OB_MODE_SCULPT) {
BKE_brush_sculpt_reset(brush);
}
else {
return OPERATOR_CANCELLED;
}
WM_event_add_notifier(C, NC_BRUSH | NA_EDITED, brush);
return OPERATOR_FINISHED;
}