Hair: Remove warning about undo when Delete Edit
Deleting the particle editmode is fully supported by undo now. No need to warn the user about that anymore.
This commit is contained in:
parent
b46e828b0c
commit
ef0ef8bcff
|
@ -5390,11 +5390,6 @@ static int clear_edited_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
static int clear_edited_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
|
||||
{
|
||||
return WM_operator_confirm_message(C, op, "Lose changes done in particle mode? (no undo)");
|
||||
}
|
||||
|
||||
void PARTICLE_OT_edited_clear(wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
|
@ -5405,7 +5400,6 @@ void PARTICLE_OT_edited_clear(wmOperatorType *ot)
|
|||
/* api callbacks */
|
||||
ot->exec = clear_edited_exec;
|
||||
ot->poll = particle_edit_toggle_poll;
|
||||
ot->invoke = clear_edited_invoke;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
|
|
Loading…
Reference in New Issue