From 0c9607312f83fa3bbbabe245e97dbc96665f6e70 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Feb 2021 16:30:07 +1100 Subject: Undo: don't log an error when the undo limit has been exceeded --- source/blender/blenkernel/intern/undo_system.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c index bb871e84c7b..52f0fe3f5a2 100644 --- a/source/blender/blenkernel/intern/undo_system.c +++ b/source/blender/blenkernel/intern/undo_system.c @@ -768,10 +768,13 @@ bool BKE_undosys_step_load_data_ex(UndoStack *ustack, while (us_target_active != NULL && us_target_active->skip) { us_target_active = (undo_dir == -1) ? us_target_active->prev : us_target_active->next; } - } - if (us_target_active == NULL) { - CLOG_ERROR(&LOG, "could not find a valid final active target step"); - return false; + if (us_target_active == NULL) { + CLOG_INFO(&LOG, + 2, + "undo/redo did not find a step after stepping over skip-steps " + "(undo limit exceeded)"); + return false; + } } CLOG_INFO(&LOG, -- cgit v1.2.3