diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-02-02 22:51:56 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-02-02 22:51:56 +0300 |
commit | 66aa2e012736f9f5216ae95a4234724e8842dcb1 (patch) | |
tree | 193c0ac74c6ee6c84a6fe9475b257229a355792b /source/blender/editors/transform | |
parent | 717581df9333d4d4bf8e531b4d4c091d2f8f3930 (diff) |
PET Connectivity calculation. Adding threshold to take care of possible imprecisions.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 59a065c62c0..15b812dc1f2 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -1817,10 +1817,10 @@ static int connectivity_edge(float mtx[][3], EditVert *v1, EditVert *v2) if (v1->f2) { if (v2->f2) { - if (v2->tmp.fp + edge_len < v1->tmp.fp) { + if (v2->tmp.fp + edge_len + THRESHOLD < v1->tmp.fp) { v1->tmp.fp = v2->tmp.fp + edge_len; done = 1; - } else if (v1->tmp.fp + edge_len < v2->tmp.fp) { + } else if (v1->tmp.fp + edge_len + THRESHOLD < v2->tmp.fp) { v2->tmp.fp = v1->tmp.fp + edge_len; done = 1; } |