Fix T64230: Crash on weight paint gradient redo
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 May 2019 05:14:30 +0000 (15:14 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 May 2019 05:14:30 +0000 (15:14 +1000)
source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c

index c1c2964156f2640b353eca370d574c010c144094..9ad1775e0e632fcc8d640b969978cd18a3a22fda 100644 (file)
@@ -880,7 +880,7 @@ void PAINT_OT_weight_gradient(wmOperatorType *ot)
   ot->cancel = WM_gesture_straightline_cancel;
 
   /* flags */
-  ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+  ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA;
 
   prop = RNA_def_enum(ot->srna, "type", gradient_types, 0, "Type", "");
   RNA_def_property_flag(prop, PROP_SKIP_SAVE);