Normand Briere
2019-05-05 481df91095a82824d2a98d4db860b3caadbda70a
Object3D.java
....@@ -2477,13 +2477,13 @@
24772477 return retval;
24782478 }
24792479
2480
- void doEditDrag(ClickInfo info)
2480
+ void doEditDrag(ClickInfo info, boolean opposite)
24812481 {
24822482 switch (doSomething)
24832483 {
24842484 case 1: // '\001'
24852485 //super.
2486
- doEditDrag0(info);
2486
+ doEditDrag0(info, opposite);
24872487 break;
24882488
24892489 case 2: // '\002'
....@@ -2496,11 +2496,11 @@
24962496 {
24972497 //sel.hitSomething = childToDrag.hitSomething;
24982498 //childToDrag.doEditDrag(info);
2499
- sel.doEditDrag(info);
2499
+ sel.doEditDrag(info, opposite);
25002500 } else
25012501 {
25022502 //super.
2503
- doEditDrag0(info);
2503
+ doEditDrag0(info, opposite);
25042504 }
25052505 }
25062506 break;
....@@ -7012,7 +7012,7 @@
70127012 return true;
70137013 }
70147014
7015
- void doEditDrag0(ClickInfo info)
7015
+ void doEditDrag0(ClickInfo info, boolean opposite)
70167016 {
70177017 if (hitSomething == 0)
70187018 {
....@@ -7039,7 +7039,7 @@
70397039
70407040 scale *= 0.05f * Globals.theRenderer.RenderCamera().Distance();
70417041
7042
- if (modified)
7042
+ if (modified || opposite)
70437043 {
70447044 //assert(false);
70457045 /*
....@@ -7133,6 +7133,7 @@
71337133
71347134 if (modified)
71357135 {
7136
+ // Rotate 90 degrees
71367137 angle /= (Math.PI / 4);
71377138 angle = Math.floor(angle + 0.5);
71387139 angle *= (Math.PI / 4);