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:
parent
05dd9ca06c
commit
9253386dcb
Notes:
blender-bot
2024-05-19 18:31:11 +02:00
Referenced by issue #76488, Using 'Mask Slice' in Edit Mode Immediately Closes Blender
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue