Fix T76488: fix mask extract poll function

This was returning true in edit mode, causing the crash

Reviewed By: jbakker

Maniphest Tasks: T76488

Differential Revision: https://developer.blender.org/D7645
This commit is contained in:
Pablo Dobarro 2020-05-13 02:58:32 +02:00
parent 05dd9ca06c
commit 9253386dcb
Notes: blender-bot 2023-02-13 22:36:33 +01:00
Referenced by issue #76488, Using 'Mask Slice' in Edit Mode Immediately Closes Blender
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ static bool paint_mask_extract_poll(bContext *C)
return false;
}
else {
return true;
return ED_operator_object_active_editable_mesh(C);
}
}
return ED_operator_object_active_editable_mesh(C);
return false;
}
static int paint_mask_extract_exec(bContext *C, wmOperator *op)