diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-05-16 16:31:56 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-05-16 16:31:56 +0300 |
commit | 6b40ec46ea021076a54abb870d29a4cf3a1d7041 (patch) | |
tree | d9f74c6293356102d3f9bf1b556baaee9e5a1193 | |
parent | c35b9250a680f5bf6a98a2ef9a664c6e85ad0b76 (diff) |
Remove unneeded changes to sculpt_undo. It wasn't the cause of the original issue.temp-T97479-3d-texturing-undo
-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); } |