From 5a546232b84ce65d8779d29e9171e7e2df013614 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sat, 20 Jul 2019 20:50:17 -0400
Subject: [PATCH] Restore bind texture

---
 ScriptNode.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ScriptNode.java b/ScriptNode.java
index 62954c9..269b6be 100644
--- a/ScriptNode.java
+++ b/ScriptNode.java
@@ -388,7 +388,7 @@
             {
                 System.err.println("LoadBVHFile = " + obj + "; name = " + iname + "; first frame = " + firstframe + "; last frame = " + lastframe);
         obj.blockloop = false; // to force crash right now                
-                GetRoot().editWindow.LoadBVHFile(iname, obj, false, force?firstframe:-1, lastframe);
+                GetRoot().GetWindow().LoadBVHFile(iname, obj, false, force?firstframe:-1, lastframe);
             }
             else
             {
@@ -522,7 +522,7 @@
         if (command.equals("recompile"))
         {
             // TODO assert (GetRoot() == Globals.theRenderer.object);
-            GetRoot().editWindow.Recompile();
+            GetRoot().GetWindow().Recompile();
             return;
         }
         if (command.equals("resetframecount"))
@@ -533,7 +533,7 @@
         if (command.equals("deselect") || command.equals("unselect"))
         {
             // TODO assert (GetRoot() == Globals.theRenderer.object);
-            GetRoot().editWindow.jTree.clearSelection();
+            GetRoot().GetWindow().jTree.clearSelection();
             return;
         }
         if (command.equals("stoplive") || command.equals("liveoff"))
@@ -771,7 +771,7 @@
             if (!CameraPane.BOXMODE)
             {
                 Globals.theRenderer.ToggleBoxMode();
-                GetRoot().editWindow.Recompile();
+                GetRoot().GetWindow().Recompile();
             }
             return;
         }
@@ -780,7 +780,7 @@
             if (CameraPane.BOXMODE)
             {
                 Globals.theRenderer.ToggleBoxMode();
-                GetRoot().editWindow.Recompile();
+                GetRoot().GetWindow().Recompile();
             }
             return;
         }
@@ -1172,7 +1172,7 @@
                     Object3D root = GetObject(rootobject);
 
                     System.err.println("ZOOM: root = " + root + "; rootobject = " + rootobject);
-                    GetRoot().editWindow.objEditor.ScreenFit(root, false);
+                    GetRoot().GetWindow().objEditor.ScreenFit(root, false);
                     CameraPane.trackedobject = root;
                     CameraPane.ABORTED = true;
 System.err.println("SET ABORTED (SPEAKERFOCUS) ");
@@ -1464,7 +1464,7 @@
         {
             // TODO assert (GetRoot() == Globals.theRenderer.object);
             String path = GetAlias(strs[index+1]);
-            GetRoot().editWindow.Select(GetRoot().GetTreePath(path.split("/"), 0), false, false);
+            GetRoot().GetWindow().Select(GetRoot().GetTreePath(path.split("/"), 0), false, false);
             return;
         }
         if (command.equals("mocap"))

--
Gitblit v1.6.2