Normand Briere
2019-08-01 90c87ae87a6d1b88ed8398da7bb95629f0df5b09
Scale handle.
2 files modified
10 ■■■■ changed files
CameraPane.java 2 ●●● patch | view | raw | blame | history
Object3D.java 8 ●●●● patch | view | raw | blame | history
CameraPane.java
....@@ -16091,7 +16091,7 @@
1609116091 gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
1609216092 break;
1609316093 case Object3D.hitScale: gr.setColor(Color.cyan);
16094
- gr.drawLine(X, Y, 0, 0);
16094
+ gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
1609516095 break;
1609616096 }
1609716097
Object3D.java
....@@ -7493,7 +7493,7 @@
74937493 hitSomething = hitScale;
74947494
74957495 double scale = 0.005f * clickInfo.camera.Distance();
7496
- double hScale = (double) (clickInfo.x /*- centerPt.x*/) / 32;
7496
+ double hScale = (double) (clickInfo.x - centerPt.x) / 32;
74977497 double sign = 1;
74987498 if (hScale < 0)
74997499 {
....@@ -7505,7 +7505,7 @@
75057505 //hScale = 0.01;
75067506 }
75077507
7508
- double vScale = (double) (clickInfo.y /*- centerPt.y*/) / 32;
7508
+ double vScale = (double) (clickInfo.y - centerPt.y) / 32;
75097509 sign = 1;
75107510 if (vScale < 0)
75117511 {
....@@ -7720,7 +7720,7 @@
77207720 break;
77217721
77227722 case hitScale: // scale
7723
- double hScale = (double) (clickInfo.x /*- centerPt.x*/) / 32;
7723
+ double hScale = (double) (clickInfo.x - centerPt.x) / 32;
77247724 double sign = 1;
77257725 if (hScale < 0)
77267726 {
....@@ -7732,7 +7732,7 @@
77327732 //hScale = 0.01;
77337733 }
77347734
7735
- double vScale = (double) (clickInfo.y /*- centerPt.y*/) / 32;
7735
+ double vScale = (double) (clickInfo.y - centerPt.y) / 32;
77367736 sign = 1;
77377737 if (vScale < 0)
77387738 {