[Bf-blender-cvs] [459fd1814c6] master: Fix bad allocation in mask sculpt gestures

Pablo Dobarro noreply at git.blender.org
Thu Sep 17 23:45:48 CEST 2020


Commit: 459fd1814c6f946ae4aa5edf867a8b4c2c80c0c5
Author: Pablo Dobarro
Date:   Thu Sep 17 23:44:39 2020 +0200
Branches: master
https://developer.blender.org/rB459fd1814c6f946ae4aa5edf867a8b4c2c80c0c5

Fix bad allocation in mask sculpt gestures

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D8886

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

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

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

diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index c9fdf3c238d..1f86fc84f59 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -712,7 +712,7 @@ static void sculpt_gesture_mask_end(bContext *C, SculptGestureContext *sgcontext
 
 static void sculpt_gesture_init_mask_properties(SculptGestureContext *sgcontext, wmOperator *op)
 {
-  sgcontext->operation = MEM_callocN(sizeof(SculptGestureFaceSetOperation), "Mask Operation");
+  sgcontext->operation = MEM_callocN(sizeof(SculptGestureMaskOperation), "Mask Operation");
 
   SculptGestureMaskOperation *mask_operation = (SculptGestureMaskOperation *)sgcontext->operation;



More information about the Bf-blender-cvs mailing list