[fix] may now always edit a FreeformFinSet's p[0]. Again.
This commit is contained in:
parent
01fd20ebcc
commit
3b342391b1
@ -424,13 +424,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
|
|||||||
|
|
||||||
Point2D.Double point = getCoordinates(event);
|
Point2D.Double point = getCoordinates(event);
|
||||||
finset.setPoint(dragIndex, point.x, point.y);
|
finset.setPoint(dragIndex, point.x, point.y);
|
||||||
|
|
||||||
final double bodyFront = -finset.getAxialFront();
|
|
||||||
|
|
||||||
if(0 == dragIndex && bodyFront > point.x){
|
|
||||||
dragIndex = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
updateFields();
|
updateFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -449,7 +443,6 @@ public class FreeformFinSetConfig extends FinSetConfig {
|
|||||||
// if ctrl+click, delete point
|
// if ctrl+click, delete point
|
||||||
try {
|
try {
|
||||||
Point2D.Double point = getCoordinates(event);
|
Point2D.Double point = getCoordinates(event);
|
||||||
System.err.println(String.format("---- Removing Point %d @ %g, %g", clickIndex, point.x, point.y));
|
|
||||||
finset.removePoint(clickIndex);
|
finset.removePoint(clickIndex);
|
||||||
} catch (IllegalFinPointException ignore) {
|
} catch (IllegalFinPointException ignore) {
|
||||||
log.error("Ignoring IllegalFinPointException while dragging, dragIndex=" + dragIndex + ". This is likely an internal error.");
|
log.error("Ignoring IllegalFinPointException while dragging, dragIndex=" + dragIndex + ". This is likely an internal error.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user