Fix crash with particle cut brush and other brushes
Why is bedit->data.context NULL?
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user