diff options
author | Pablo Dobarro <pablodp606> | 2020-09-18 00:44:39 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-09-18 00:44:54 +0300 |
commit | 459fd1814c6f946ae4aa5edf867a8b4c2c80c0c5 (patch) | |
tree | 1fa9b84f428b46e1da81b4faa70047d08ad43555 | |
parent | 39de0b79fd635ed67e8b1816c32199177d7f9f07 (diff) |
Fix bad allocation in mask sculpt gestures
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D8886
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_mask.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |