diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-22 14:58:56 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-22 14:58:56 +0300 |
commit | f99197fb2d0a529cd2096c9367bc30d24398ac1e (patch) | |
tree | 99421c3dc5c789b431ec131b557bbab6ed89d4b2 /source/blender/editors/transform/transform_constraints.c | |
parent | 47b9d7494e6571eb716ddb073a6248b3fc32700b (diff) |
Transform: Support mixed snap in 3d View.
Allows more than one snap mode to be enabled. So different combinations are possible.
Reviewers: campbellbarton
Reviewed By: campbellbarton
Subscribers: Christopher_Anderssarian, duarteframos
Tags: #bf_blender_2.8
Differential Revision: D3400
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index a95d21b2f02..3c70eaae2d3 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -343,8 +343,7 @@ static void applyAxisConstraintVec( mul_m3_v3(t->con.pmtx, out); // With snap, a projection is alright, no need to correct for view alignment - if (!(!ELEM(t->tsnap.mode, SCE_SNAP_MODE_INCREMENT, SCE_SNAP_MODE_GRID) && activeSnap(t))) { - + if (!validSnap(t)) { const int dims = getConstraintSpaceDimension(t); if (dims == 2) { if (!is_zero_v3(out)) { |