fix own bug in weight gradient tool, need to check if mesh dverts will be overwritten,
This commit is contained in:
@@ -3182,9 +3182,11 @@ static int paint_weight_gradient_modal(bContext *C, wmOperator *op, wmEvent *eve
|
||||
VPaint *wp = ts->wpaint;
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
Mesh *me = ob->data;
|
||||
if (wp->wpaint_prev) {
|
||||
BKE_defvert_array_free_elems(me->dvert, me->totvert);
|
||||
BKE_defvert_array_copy(me->dvert, wp->wpaint_prev, me->totvert);
|
||||
free_wpaint_prev(wp);
|
||||
}
|
||||
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
|
||||
|
Reference in New Issue
Block a user