Fix T61536: can't snap vertex to another vertex in edit mode using curves

Previously, the curve self snapping would only snap to points that were
earlier in the curve structure. This was because of a simple coding
snafu of using break when meaning to use continue.
This commit is contained in:
Sebastian Parborg
2019-02-14 14:49:47 +01:00
parent 87bba05d25
commit 4f92037158

View File

@@ -1537,7 +1537,7 @@ static short snapCurve(
if (nu->bezt) {
/* don't snap to selected (moving) or hidden */
if (nu->bezt[u].f2 & SELECT || nu->bezt[u].hide != 0) {
break;
continue;
}
has_snap |= test_projected_vert_dist(
&neasrest_precalc,
@@ -1567,7 +1567,7 @@ static short snapCurve(
else {
/* don't snap to selected (moving) or hidden */
if (nu->bp[u].f1 & SELECT || nu->bp[u].hide != 0) {
break;
continue;
}
has_snap |= test_projected_vert_dist(
&neasrest_precalc,