@@ -38,7 +38,7 @@ public EditLinkTool(Link link) {
38
38
39
39
@ Override
40
40
public BaseTool mouseMove (int x , int y ) {
41
- Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ));
41
+ Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ), false );
42
42
43
43
CtrlPt pickCtrl = link .path .closestCtrlPt (worldPoint );
44
44
nearbyInfo = link .path .approxClosestPoint (worldPoint , 10 );
@@ -65,7 +65,7 @@ public boolean handlesRbDown() {
65
65
public BaseTool rbDown (int x , int y ) {
66
66
if (placePoint != null ) return this ; // do nothing if we're placing a point
67
67
68
- Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ));
68
+ Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ), false );
69
69
CtrlPt pickCtrl = link .path .closestCtrlPt (worldPoint );
70
70
71
71
if (pickCtrl != null && pickCtrl .pos .dist (worldPoint ) < 25 ) {
@@ -79,7 +79,7 @@ public BaseTool rbDown(int x, int y) {
79
79
@ Override
80
80
public BaseTool lbDown (int x , int y , boolean isShiftDown ) {
81
81
// Try picking nearest control point
82
- Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ));
82
+ Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ), false );
83
83
CtrlPt pickCtrl = link .path .closestCtrlPt (worldPoint );
84
84
85
85
if (pickCtrl != null && pickCtrl .pos .dist (worldPoint ) < 25 ) {
@@ -109,7 +109,7 @@ else if (nearbyInfo.pt.dist(worldPoint) < 20) {
109
109
@ Override
110
110
public BaseTool mouseDrag (int x , int y ) {
111
111
if (placePoint != null ) {
112
- Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ));
112
+ Vec2 worldPoint = ViewUtil .screenToWorld (new Vec2 (x , y ), false );
113
113
placePoint .pos .set (worldPoint );
114
114
editPoint .set (placePoint .pos );
115
115
link .path .calcCurves ();
0 commit comments