diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 40e1ba717f0..5867dc558de 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -1783,7 +1783,6 @@ void ED_sculpt_undosys_type(UndoType *ut) static UndoSculpt *sculpt_undosys_step_get_nodes(UndoStep *us_p) { - BLI_assert(us_p != NULL); SculptUndoStep *us = (SculptUndoStep *)us_p; return &us->data; } @@ -1792,9 +1791,6 @@ static UndoSculpt *sculpt_undo_get_nodes(void) { UndoStack *ustack = ED_undo_stack_get(); UndoStep *us = BKE_undosys_stack_init_or_active_with_type(ustack, BKE_UNDOSYS_TYPE_SCULPT); - if (us == NULL) { - return NULL; - } return sculpt_undosys_step_get_nodes(us); } |