Blender Git Loki
Git Commits -> Revision 94cf74a
Revision 94cf74a by Bastien Montagne (master) February 4, 2021, 21:03 (GMT) |
Cleanup/refactor: Undosys: Get rid of the magic values for undo direction. Move `eUndoStepDir` to `BKE_undo_system.h` and use its values everywhere. Note that this also introduce the `STEP_INVALID` value in that enum. Finally, kept the matching struct members in some lower-level readfile code as an `int` to avoid having to include `BKE_undo_system.h` in a lot of unrelated files. |
Commit Details:
Full Hash: 94cf74afbb1329a9ff099e2ebd7f43ed8313f9ec
Parent Commit: 7d5640e
Lines Changed: +114, -76
23 Modified Paths:
/source/blender/blenkernel/BKE_blender_undo.h (+3, -1) (Diff)
/source/blender/blenkernel/BKE_undo_system.h (+10, -4) (Diff)
/source/blender/blenkernel/intern/blender_undo.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/undo_system.c (+16, -12) (Diff)
/source/blender/blenloader/BLO_readfile.h (+2, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+9, -7) (Diff)
/source/blender/blenloader/intern/readfile.h (+1, -1) (Diff)
/source/blender/editors/armature/editarmature_undo.c (+5, -2) (Diff)
/source/blender/editors/curve/editcurve_undo.c (+5, -2) (Diff)
/source/blender/editors/curve/editfont_undo.c (+5, -2) (Diff)
/source/blender/editors/gpencil/gpencil_undo.c (+4, -3) (Diff)
/source/blender/editors/include/ED_gpencil.h (+3, -1) (Diff)
/source/blender/editors/lattice/editlattice_undo.c (+5, -2) (Diff)
/source/blender/editors/mesh/editmesh_undo.c (+5, -2) (Diff)
/source/blender/editors/metaball/editmball_undo.c (+5, -2) (Diff)
/source/blender/editors/physics/particle_edit_undo.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_curve_undo.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+9, -4) (Diff)
/source/blender/editors/space_image/image_undo.c (+5, -3) (Diff)
/source/blender/editors/space_text/text_undo.c (+8, -3) (Diff)
/source/blender/editors/undo/ed_undo.c (+1, -10) (Diff)
/source/blender/editors/undo/memfile_undo.c (+6, -8) (Diff)
/source/blender/blenkernel/BKE_undo_system.h (+10, -4) (Diff)
/source/blender/blenkernel/intern/blender_undo.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/undo_system.c (+16, -12) (Diff)
/source/blender/blenloader/BLO_readfile.h (+2, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+9, -7) (Diff)
/source/blender/blenloader/intern/readfile.h (+1, -1) (Diff)
/source/blender/editors/armature/editarmature_undo.c (+5, -2) (Diff)
/source/blender/editors/curve/editcurve_undo.c (+5, -2) (Diff)
/source/blender/editors/curve/editfont_undo.c (+5, -2) (Diff)
/source/blender/editors/gpencil/gpencil_undo.c (+4, -3) (Diff)
/source/blender/editors/include/ED_gpencil.h (+3, -1) (Diff)
/source/blender/editors/lattice/editlattice_undo.c (+5, -2) (Diff)
/source/blender/editors/mesh/editmesh_undo.c (+5, -2) (Diff)
/source/blender/editors/metaball/editmball_undo.c (+5, -2) (Diff)
/source/blender/editors/physics/particle_edit_undo.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_curve_undo.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+9, -4) (Diff)
/source/blender/editors/space_image/image_undo.c (+5, -3) (Diff)
/source/blender/editors/space_text/text_undo.c (+8, -3) (Diff)
/source/blender/editors/undo/ed_undo.c (+1, -10) (Diff)
/source/blender/editors/undo/memfile_undo.c (+6, -8) (Diff)