From 0c85af6e46f48b7425d59fc776b193c06a4a1f52 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sun, 04 Aug 2019 12:08:30 -0400
Subject: [PATCH] Material icons

---
 Object3D.java |   30 +++++++++++++++++++++++++++---
 1 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/Object3D.java b/Object3D.java
index a984e30..4b58659 100644
--- a/Object3D.java
+++ b/Object3D.java
@@ -22,6 +22,7 @@
     //static final long serialVersionUID = -607422624994562685L;
     static final long serialVersionUID = 5022536242724664900L;
     
+    // Use GetUUID for backward compatibility with null.
     private UUID uuid = UUID.randomUUID();
     
     // TEMPORARY for mocap undo. No need to be transient.
@@ -32,7 +33,7 @@
     String skyboxname;
     String skyboxext;
     
-    Object3D versions[];
+    Object3D versionlist[];
     int versionindex = -1;    
         
     ScriptNode scriptnode;
@@ -222,7 +223,7 @@
 //            o.bRep.support = null;
 //        }
         o.selection = this.selection;
-        o.versions = this.versions;
+        o.versionlist = this.versionlist;
         o.versionindex = this.versionindex;
         
         if (this.support != null)
@@ -245,6 +246,29 @@
     //    this.support = null;
     //    this.fileparent = null;
     }
+
+//    Object3D GetObject(java.util.UUID uuid)
+//    {
+//        if (this.uuid.equals(uuid))
+//            return this;
+//            
+//        if (blockloop)
+//            return null;
+//
+//        blockloop = true;
+//
+//        for (int i=0; i<Size(); i++)
+//        {
+//            Object3D o = get(i).GetObject(uuid);
+//            
+//            if (o != null)
+//                return o;
+//        }
+//        
+//        blockloop = false;
+//        
+//        return null;
+//    }
 
     void RestoreBigData(java.util.Hashtable<java.util.UUID, Object3D> hashtable)
     {
@@ -280,7 +304,7 @@
         
         this.selection = o.selection;
         
-        this.versions = o.versions;
+        this.versionlist = o.versionlist;
         this.versionindex = o.versionindex;
 // July 2019        if (this.bRep != null)
 //            this.bRep.support = o.transientrep;

--
Gitblit v1.6.2