[Bf-blender-cvs] [73e7c9d5896] master: Fix T64230: Crash on weight paint gradient redo

Campbell Barton noreply at git.blender.org
Tue May 7 07:14:55 CEST 2019


Commit: 73e7c9d58961ca54b616b7dcab1f01f7dbf11274
Author: Campbell Barton
Date:   Tue May 7 15:14:30 2019 +1000
Branches: master
https://developer.blender.org/rB73e7c9d58961ca54b616b7dcab1f01f7dbf11274

Fix T64230: Crash on weight paint gradient redo

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
index c1c2964156f..9ad1775e0e6 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
@@ -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);



More information about the Bf-blender-cvs mailing list