[Bf-blender-cvs] [ef0ef8bcff7] master: Hair: Remove warning about undo when Delete Edit

Dalai Felinto noreply at git.blender.org
Thu Oct 8 15:36:27 CEST 2020


Commit: ef0ef8bcff7a52ae715b9edf87ea1c35bc11aafc
Author: Dalai Felinto
Date:   Thu Oct 8 15:00:35 2020 +0200
Branches: master
https://developer.blender.org/rBef0ef8bcff7a52ae715b9edf87ea1c35bc11aafc

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.

===================================================================

M	source/blender/editors/physics/particle_edit.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list