diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-07-01 23:13:13 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-07-01 23:13:13 +0300 |
commit | b6f35531b69462bb8dd2af0e69a576a345be5673 (patch) | |
tree | 469ed5d54749b1584b671ab9409110b0261136c9 /source/blender | |
parent | e16972389e728eeaf5043bb3cbd85fb7312a6463 (diff) |
Revert "Fix alignment test when snap to edge while in constraint"
This reverts commit e16972389e728eeaf5043bb3cbd85fb7312a6463.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index 96759cb5723..66b90eb159f 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -359,7 +359,7 @@ void transform_constraint_snap_axis_to_edge(const TransInfo *t, float lambda; const float *edge_snap_point = t->tsnap.snapPoint; const float *edge_dir = t->tsnap.snapNormal; - bool is_aligned = fabsf(dot_v3v3(axis, edge_dir)) < CONSTRAIN_EPSILON; + bool is_aligned = fabsf(dot_v3v3(axis, edge_dir)) > (1.0f - CONSTRAIN_EPSILON); if (!is_aligned && isect_ray_ray_v3(t->tsnap.snapTarget, axis, edge_snap_point, edge_dir, &lambda, NULL)) { mul_v3_v3fl(r_out, axis, lambda); |