mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
relax validation of control point collision while dragging
This commit is contained in:
@@ -1258,15 +1258,15 @@ public class Presenter implements IPlugInPort {
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < controlPoints.length - 1; i++) {
|
||||
for (int j = i + 1; j < controlPoints.length; j++) {
|
||||
if (controlPoints[i] != null && controlPoints[j] != null && controlPoints[i].equals(controlPoints[j])) {
|
||||
// Control points collision detected, cannot make
|
||||
// this move.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
// for (int i = 0; i < controlPoints.length - 1; i++) {
|
||||
// for (int j = i + 1; j < controlPoints.length; j++) {
|
||||
// if (controlPoints[i] != null && controlPoints[j] != null && controlPoints[i].equals(controlPoints[j])) {
|
||||
// // Control points collision detected, cannot make
|
||||
// // this move.
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// Update all points to new location.
|
||||
|
||||
Reference in New Issue
Block a user