diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 15:45:45 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 19:39:41 +0300 |
commit | 043ddcf3ad3bdcba2c980af76202bc6f177f4b0d (patch) | |
tree | d9ebf082f18edf58eceff6dbae99833845bc578a /source/blender/editors/transform/transform_mode_boneenvelope.c | |
parent | 196d6166e51dc9496a8a678c329758134988eee3 (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_mode_boneenvelope.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_boneenvelope.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_mode_boneenvelope.c b/source/blender/editors/transform/transform_mode_boneenvelope.c index 7f5a8fedeef..1a25ee50543 100644 --- a/source/blender/editors/transform/transform_mode_boneenvelope.c +++ b/source/blender/editors/transform/transform_mode_boneenvelope.c @@ -102,11 +102,10 @@ void initBoneEnvelope(TransInfo *t) t->idx_max = 0; t->num.idx_max = 0; - t->snap[0] = 0.0f; - t->snap[1] = 0.1f; - t->snap[2] = t->snap[1] * 0.1f; + t->snap[0] = 0.1f; + t->snap[1] = t->snap[0] * 0.1f; - copy_v3_fl(t->num.val_inc, t->snap[1]); + copy_v3_fl(t->num.val_inc, t->snap[0]); t->num.unit_sys = t->scene->unit.system; t->num.unit_type[0] = B_UNIT_NONE; |