Blender Git Loki
Git Commits -> Revision 27a5da4
Revision 27a5da4 by Jacques Lucke (master) September 16, 2020, 10:23 (GMT) |
Cleanup: use uint8_t for various flags in curves Previously, it was kind of a mess. In different places it was using `char`, `short` and `int`. The changed properties are flags that are operated upon using bit operations. Therefore, the integer type should be unsigned. Since we only use 2 bits of these flags, `uint8_t` is large enough. Especially note the change I had to make in `RNA_define.h` to make this work. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D8844 |
Commit Details:
Full Hash: 27a5da4dc3a399e1fe7e88dc8722a891e9cfcf78
Parent Commit: d376aea
Lines Changed: +60, -55
15 Modified Paths:
/source/blender/blenkernel/BKE_curve.h (+5, -5) (Diff)
/source/blender/blenkernel/BKE_lattice.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+14, -12) (Diff)
/source/blender/blenkernel/intern/lattice.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mask.c (+2, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+12, -12) (Diff)
/source/blender/editors/animation/keyframes_edit.c (+2, -2) (Diff)
/source/blender/editors/curve/curve_intern.h (+4, -4) (Diff)
/source/blender/editors/curve/editcurve.c (+5, -5) (Diff)
/source/blender/editors/curve/editcurve_query.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve_select.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+2, -2) (Diff)
/source/blender/editors/transform/transform_data.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+5, -3) (Diff)
/source/blender/makesrna/RNA_define.h (+2, -1) (Diff)
/source/blender/blenkernel/BKE_lattice.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+14, -12) (Diff)
/source/blender/blenkernel/intern/lattice.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mask.c (+2, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+12, -12) (Diff)
/source/blender/editors/animation/keyframes_edit.c (+2, -2) (Diff)
/source/blender/editors/curve/curve_intern.h (+4, -4) (Diff)
/source/blender/editors/curve/editcurve.c (+5, -5) (Diff)
/source/blender/editors/curve/editcurve_query.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve_select.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+2, -2) (Diff)
/source/blender/editors/transform/transform_data.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+5, -3) (Diff)
/source/blender/makesrna/RNA_define.h (+2, -1) (Diff)