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

---
 Mocap.java |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/Mocap.java b/Mocap.java
index 246c834..aa11165 100644
--- a/Mocap.java
+++ b/Mocap.java
@@ -261,6 +261,8 @@
         
 //    LA.matConcat(toParent, hip.get(0).toParent, toParent);
         
+        CameraPane.CreateSelectedPoint();
+        
         CameraPane.debugpointG.toParent[3][0] = poship.x;
         CameraPane.debugpointG.toParent[3][1] = poship.y;
         CameraPane.debugpointG.toParent[3][2] = poship.z;        
@@ -501,6 +503,7 @@
         centroid.z = matrix[3][2];
 //        this.getCentroid(centroid, true);
         
+        CameraPane.CreateSelectedPoint();
         CameraPane.debugpointG.name = "";
         CameraPane.debugpointG.toParent[3][0] = mocaporigin.x;
         CameraPane.debugpointG.toParent[3][1] = mocaporigin.y;
@@ -643,6 +646,24 @@
     
 //    transient // aout 2013
             Object3D skeleton;
+    
+    void ExtractBigData(Object3D o)
+    {
+        super.ExtractBigData(o);
+        
+        o.savebvh = this.bvh;
+        o.saveskeleton = this.skeleton;
+        this.bvh = null;
+        this.skeleton = null;
+    }
+
+    void RestoreBigData(Object3D o)
+    {
+        super.RestoreBigData(o);
+        
+        this.bvh = o.savebvh;
+        this.skeleton = o.saveskeleton;
+    }
     
     boolean smoothed;
     
@@ -3897,7 +3918,7 @@
      //       return;
         
         if (//!restarted && /*display.restartframe &&*/
-                Globals.isLIVE() && live && (display.DrawMode() == iCameraPane.SHADOW || !Globals.RENDERSHADOW))
+                Globals.isLIVE() && live && (display.DrawMode() == iCameraPane.SHADOW || !Globals.RENDERSHADOW || !Globals.COMPUTESHADOWWHENLIVE))
         {
             //display.restartframe = false;
             restarted = true;

--
Gitblit v1.6.2