Normand Briere
2019-04-22 3c4c16e0a4ca3949a7a37a24607df7f89abfe7ea
ScriptNode.java
....@@ -538,13 +538,13 @@
538538 }
539539 if (command.equals("stoplive") || command.equals("liveoff"))
540540 {
541
- if (CameraPane.isLIVE())
541
+ if (Globals.isLIVE())
542542 CameraPane.theRenderer.ToggleLive();
543543 return;
544544 }
545545 if (command.equals("startlive") || command.equals("liveon"))
546546 {
547
- if (!CameraPane.isLIVE())
547
+ if (!Globals.isLIVE())
548548 CameraPane.theRenderer.ToggleLive();
549549 return;
550550 }
....@@ -972,37 +972,37 @@
972972
973973 if (command.equals("targetx"))
974974 {
975
- ((Mocap) object).targetx = Float.parseFloat(strs[index+2]);
975
+ ((Mocap) object).targetdirx = Float.parseFloat(strs[index+2]);
976976 return;
977977 }
978978
979979 if (command.equals("targetz"))
980980 {
981
- ((Mocap) object).targetz = Float.parseFloat(strs[index+2]);
981
+ ((Mocap) object).targetdirz = Float.parseFloat(strs[index+2]);
982982 return;
983983 }
984984
985985 if (command.equals("goalx"))
986986 {
987
- ((Mocap) object).goalx = Float.parseFloat(strs[index+2]);
987
+ ((Mocap) object).goalposx = Float.parseFloat(strs[index+2]);
988988 return;
989989 }
990990
991991 if (command.equals("goalz"))
992992 {
993
- ((Mocap) object).goalz = Float.parseFloat(strs[index+2]);
993
+ ((Mocap) object).goalposz = Float.parseFloat(strs[index+2]);
994994 return;
995995 }
996996
997997 if (command.equals("fromto"))
998998 {
999999 cVector from = new cVector(Float.parseFloat(strs[index+2]),
1000
- Float.parseFloat(strs[index+3]),
1001
- Float.parseFloat(strs[index+4]));
1000
+ 0, // Float.parseFloat(strs[index+3]),
1001
+ Float.parseFloat(strs[index+3]));
10021002
1003
- cVector to = new cVector(Float.parseFloat(strs[index+5]),
1004
- Float.parseFloat(strs[index+6]),
1005
- Float.parseFloat(strs[index+7]));
1003
+ cVector to = new cVector(Float.parseFloat(strs[index+4]),
1004
+ 0, // Float.parseFloat(strs[index+6]),
1005
+ Float.parseFloat(strs[index+5]));
10061006
10071007 ((Mocap) object).AddFromTo(from, to);
10081008 return;
....@@ -1785,7 +1785,7 @@
17851785 return live;
17861786 }
17871787
1788
- void DrawNode(CameraPane display, Object3D /*Composite*/ root, boolean selected)
1788
+ void DrawNode(iCameraPane display, Object3D /*Composite*/ root, boolean selected)
17891789 {
17901790 if (CameraPane.ABORTED)
17911791 {
....@@ -1793,7 +1793,7 @@
17931793 return;
17941794 }
17951795
1796
- if (isLive() && display.isLIVE() && display.drawMode == display.SHADOW)
1796
+ if (isLive() && Globals.isLIVE() && display.DrawMode() == display.SHADOW)
17971797 {
17981798 if (reader == null)
17991799 Init();