From 459fd1814c6f946ae4aa5edf867a8b4c2c80c0c5 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Thu, 17 Sep 2020 23:44:39 +0200 Subject: Fix bad allocation in mask sculpt gestures Reviewed By: sergey Differential Revision: https://developer.blender.org/D8886 --- source/blender/editors/sculpt_paint/paint_mask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender') 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; -- cgit v1.2.3