relax validation of control point collision while dragging

This commit is contained in:
Branislav Stojkovic
2019-03-23 18:54:44 +01:00
parent 5c47ff1ef0
commit 0b8952e354
@@ -1258,15 +1258,15 @@ public class Presenter implements IPlugInPort {
} }
} }
for (int i = 0; i < controlPoints.length - 1; i++) { // for (int i = 0; i < controlPoints.length - 1; i++) {
for (int j = i + 1; j < controlPoints.length; j++) { // for (int j = i + 1; j < controlPoints.length; j++) {
if (controlPoints[i] != null && controlPoints[j] != null && controlPoints[i].equals(controlPoints[j])) { // if (controlPoints[i] != null && controlPoints[j] != null && controlPoints[i].equals(controlPoints[j])) {
// Control points collision detected, cannot make // // Control points collision detected, cannot make
// this move. // // this move.
return null; // return null;
} // }
} // }
} // }
} }
// Update all points to new location. // Update all points to new location.