Blender Git Commit Log

Git Commits -> Revision f2c52aa

Revision f2c52aa by Campbell Barton (master)
June 29, 2021, 10:23 (GMT)
Cleanup: use 'const' arguments in transform calculation

Use const arguments to simplify further optimizations.

Transforming elements shouldn't need to change their containers
data-structures.
ElementResize for grease pencil stroke thickness was
modifying TransInfo.num & TransInfo.values_final.

Now copies are operated on to preserve const correctness although
it's worth investigating if this can be avoided altogether.

Commit Details:

Full Hash: f2c52aa0e1a5a6905849daa299ab907e60cab983
Parent Commit: 855f7fe
Lines Changed: +114, -75

7 Modified Paths:

/source/blender/editors/transform/transform.h (+10, -10) (Diff)
/source/blender/editors/transform/transform_constraints.c (+47, -35) (Diff)
/source/blender/editors/transform/transform_constraints.h (+1, -1) (Diff)
/source/blender/editors/transform/transform_mode.c (+35, -14) (Diff)
/source/blender/editors/transform/transform_mode.h (+14, -8) (Diff)
/source/blender/editors/transform/transform_snap.c (+5, -5) (Diff)
/source/blender/editors/transform/transform_snap.h (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021