From 6b40ec46ea021076a54abb870d29a4cf3a1d7041 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 16 May 2022 15:31:56 +0200 Subject: Remove unneeded changes to sculpt_undo. It wasn't the cause of the original issue. --- source/blender/editors/sculpt_paint/sculpt_undo.c | 4 ---- 1 file changed, 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); } -- cgit v1.2.3