[fix] may now always edit a FreeformFinSet's p[0]. Again.

This commit is contained in:
Daniel M Williams 2019-01-01 17:03:44 -05:00 committed by Daniel_M_Williams
parent 01fd20ebcc
commit 3b342391b1

View File

@ -424,13 +424,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
Point2D.Double point = getCoordinates(event);
finset.setPoint(dragIndex, point.x, point.y);
final double bodyFront = -finset.getAxialFront();
if(0 == dragIndex && bodyFront > point.x){
dragIndex = 1;
}
updateFields();
}
@ -449,7 +443,6 @@ public class FreeformFinSetConfig extends FinSetConfig {
// if ctrl+click, delete point
try {
Point2D.Double point = getCoordinates(event);
System.err.println(String.format("---- Removing Point %d @ %g, %g", clickIndex, point.x, point.y));
finset.removePoint(clickIndex);
} catch (IllegalFinPointException ignore) {
log.error("Ignoring IllegalFinPointException while dragging, dragIndex=" + dragIndex + ". This is likely an internal error.");