From ec1ab4278b2408d3b19083e530e0376f809cca44 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 22 Apr 2019 14:29:20 -0400 Subject: [PATCH] Fix drawSelf --- ScriptNode.java | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ScriptNode.java b/ScriptNode.java index 9cd6e9c..d341a50 100644 --- a/ScriptNode.java +++ b/ScriptNode.java @@ -538,13 +538,13 @@ } if (command.equals("stoplive") || command.equals("liveoff")) { - if (CameraPane.isLIVE()) + if (Globals.isLIVE()) CameraPane.theRenderer.ToggleLive(); return; } if (command.equals("startlive") || command.equals("liveon")) { - if (!CameraPane.isLIVE()) + if (!Globals.isLIVE()) CameraPane.theRenderer.ToggleLive(); return; } @@ -972,37 +972,37 @@ if (command.equals("targetx")) { - ((Mocap) object).targetx = Float.parseFloat(strs[index+2]); + ((Mocap) object).targetdirx = Float.parseFloat(strs[index+2]); return; } if (command.equals("targetz")) { - ((Mocap) object).targetz = Float.parseFloat(strs[index+2]); + ((Mocap) object).targetdirz = Float.parseFloat(strs[index+2]); return; } if (command.equals("goalx")) { - ((Mocap) object).goalx = Float.parseFloat(strs[index+2]); + ((Mocap) object).goalposx = Float.parseFloat(strs[index+2]); return; } if (command.equals("goalz")) { - ((Mocap) object).goalz = Float.parseFloat(strs[index+2]); + ((Mocap) object).goalposz = Float.parseFloat(strs[index+2]); return; } if (command.equals("fromto")) { cVector from = new cVector(Float.parseFloat(strs[index+2]), - Float.parseFloat(strs[index+3]), - Float.parseFloat(strs[index+4])); + 0, // Float.parseFloat(strs[index+3]), + Float.parseFloat(strs[index+3])); - cVector to = new cVector(Float.parseFloat(strs[index+5]), - Float.parseFloat(strs[index+6]), - Float.parseFloat(strs[index+7])); + cVector to = new cVector(Float.parseFloat(strs[index+4]), + 0, // Float.parseFloat(strs[index+6]), + Float.parseFloat(strs[index+5])); ((Mocap) object).AddFromTo(from, to); return; @@ -1793,7 +1793,7 @@ return; } - if (isLive() && display.isLIVE() && display.drawMode == display.SHADOW) + if (isLive() && Globals.isLIVE() && display.DrawMode() == display.SHADOW) { if (reader == null) Init(); -- Gitblit v1.6.2