Blender Git Loki

Git Commits -> Revision bc3e38c

Revision bc3e38c by Bastien Montagne (master)
January 6, 2021, 11:28 (GMT)
Cleanup/refactor: UndoType: Clarify `use_context` variable.

Rename it to mark it is only for `encode` callbacks, fix `encode`
callback of text undo to early fail in case it gets a NULL context, add
an assert to `BKE_undosys_step_push_with_type` that context is not NULL
when undotype requires a valid one.

Note that in practice this should not change anything, currently it
seems that we always get a valid context in
`BKE_undosys_step_push_with_type`?

Commit Details:

Full Hash: bc3e38ca3a4228b7191e9fec39288c9f37ec53b1
Parent Commit: 4e23f08
Lines Changed: +23, -14

14 Modified Paths:

/source/blender/blenkernel/BKE_undo_system.h (+5, -1) (Diff)
/source/blender/blenkernel/intern/undo_system.c (+2, -0) (Diff)
/source/blender/editors/armature/editarmature_undo.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve_undo.c (+1, -1) (Diff)
/source/blender/editors/curve/editfont_undo.c (+1, -1) (Diff)
/source/blender/editors/lattice/editlattice_undo.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_undo.c (+1, -1) (Diff)
/source/blender/editors/metaball/editmball_undo.c (+1, -1) (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 (+1, -1) (Diff)
/source/blender/editors/space_image/image_undo.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_undo.c (+5, -2) (Diff)
/source/blender/editors/undo/memfile_undo.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021