Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-10-08 15:45:45 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-10-08 19:39:41 +0300
commit043ddcf3ad3bdcba2c980af76202bc6f177f4b0d (patch)
treed9ebf082f18edf58eceff6dbae99833845bc578a /source/blender/editors/transform/transform.h
parent196d6166e51dc9496a8a678c329758134988eee3 (diff)
Cleanup: Simplify use of 'Snapping Gears'
This commit removes `t->snap[0]` and `t->snap_spatial[0]`. They were not actually being used, and could add overhead for transformation without snap.
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index 0c4aae9e2d1..ed4a2945de6 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -316,9 +316,9 @@ typedef struct TransInfo {
/** maximum index on the input vector. */
short idx_max;
/** Snapping Gears. */
- float snap[3];
+ float snap[2];
/** Spatial snapping gears(even when rotating, scaling... etc). */
- float snap_spatial[3];
+ float snap_spatial[2];
/** Mouse side of the current frame, 'L', 'R' or 'B' */
char frame_side;