Fix bad allocation in mask sculpt gestures

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D8886
This commit is contained in:
Pablo Dobarro 2020-09-17 23:44:39 +02:00 committed by Pablo Dobarro
parent 39de0b79fd
commit 459fd1814c
1 changed files with 1 additions and 1 deletions

View File

@ -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;