WM: fix non-undo operators stealing redo panel

Non-undo actions would move the redo panel into a different space.
This commit is contained in:
Campbell Barton
2018-10-04 15:21:37 +10:00
parent 165a83345a
commit 51d6d1d8fb

View File

@@ -909,8 +909,10 @@ static void wm_operator_finished(bContext *C, wmOperator *op, const bool repeat,
wm_operator_register(C, op);
WM_operator_region_active_win_set(C);
/* Show the redo panel. */
hud_status = SET;
if (WM_operator_last_redo(C) == op) {
/* Show the redo panel. */
hud_status = SET;
}
}
else {
WM_operator_free(op);