From ef0ef8bcff7a52ae715b9edf87ea1c35bc11aafc Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 8 Oct 2020 15:00:35 +0200 Subject: [PATCH] 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. --- source/blender/editors/physics/particle_edit.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 1d1859d8170..9eedba29aae 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -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;