[Bf-blender-cvs] [8826a004825] blender2.8: WM: HUD was disappearing on redo

Campbell Barton noreply at git.blender.org
Tue Jun 12 17:00:06 CEST 2018


Commit: 8826a004825761175c2a08bf51a655be02cfcee6
Author: Campbell Barton
Date:   Tue Jun 12 16:59:37 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8826a004825761175c2a08bf51a655be02cfcee6

WM: HUD was disappearing on redo

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

M	source/blender/windowmanager/intern/wm_event_system.c

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

diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index b3ff823dd2d..a6b76796c7f 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -857,11 +857,15 @@ static void wm_operator_finished(bContext *C, wmOperator *op, const bool repeat,
 	if (wm->op_undo_depth == 0) {
 		if (op->type->flag & OPTYPE_UNDO) {
 			ED_undo_push_op(C, op);
-			hud_status = CLEAR;
+			if (repeat == 0) {
+				hud_status = CLEAR;
+			}
 		}
 		else if (op->type->flag & OPTYPE_UNDO_GROUPED) {
 			ED_undo_grouped_push_op(C, op);
-			hud_status = CLEAR;
+			if (repeat == 0) {
+				hud_status = CLEAR;
+			}
 		}
 
 	}



More information about the Bf-blender-cvs mailing list