Fix crash with particle cut brush and other brushes

Why is bedit->data.context NULL?
This commit is contained in:
Mai Lavelle
2018-02-08 00:15:09 -05:00
parent 7f38e59810
commit eb0d430b4d

View File

@@ -3869,6 +3869,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
(sqrtf(dx * dx + dy * dy) > pset->brush[PE_BRUSH_ADD].step) : (dx != 0 || dy != 0)) || bedit->first)
{
PEData data= bedit->data;
data.context = C; // TODO(mai): why isnt this set in bedit->data?
view3d_operator_needs_opengl(C);
selected= (short)count_selected_keys(scene, edit);