Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-13 18:59:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-13 18:59:26 +0300
commita6ec402f5a8038718a2a034cf84f1f3f90b125ef (patch)
treed462da6cb3bc2a372369bff8e37282a291b1f6d1
parentf6367ecfb65502a1ec40c5e382800b2ac214a499 (diff)
Remove invalid assert
-rw-r--r--source/blender/editors/undo/ed_undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c
index b4268dac863..a13fa4af4e2 100644
--- a/source/blender/editors/undo/ed_undo.c
+++ b/source/blender/editors/undo/ed_undo.c
@@ -130,7 +130,7 @@ static int ed_undo_step(bContext *C, int step, const char *undoname)
}
/* TODO(campbell), could use simple optimization. */
- BLI_assert(step_data_from_name != wm->undo_stack->step_active);
+ /* Pointers match on redo. */
step_for_callback = (
BLI_findindex(&wm->undo_stack->steps, step_data_from_name) <
BLI_findindex(&wm->undo_stack->steps, wm->undo_stack->step_active)) ? 1 : -1;