diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c index 5a0081bff16..ad9ac56620d 100644 --- a/source/blender/blenkernel/intern/undo_system.c +++ b/source/blender/blenkernel/intern/undo_system.c @@ -420,7 +420,7 @@ bool BKE_undosys_step_push_with_type(UndoStack *ustack, bContext *C, const char UndoStep *us = ustack->step_init ? ustack->step_init : MEM_callocN(ut->step_size, __func__); ustack->step_init = NULL; if (us->name[0] == '\0') { - BLI_strncpy(us->name, name, sizeof(us->name)); + BLI_strncpy(us->name, name ? name : ustack->step_active->name, sizeof(us->name)); } us->type = ut; /* initialized, not added yet. */