From 6ed65dcb597fb2153cef75bf1845978f1115658c Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Fri, 14 Dec 2018 22:53:55 -0500
Subject: [PATCH] Repair shadow, normal push + attractor mesh.

---
 FileObject.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/FileObject.java b/FileObject.java
index e41d012..6de2b2c 100644
--- a/FileObject.java
+++ b/FileObject.java
@@ -22,10 +22,10 @@
         return false; // ???? false;
     }
     
-    void Reset()
-    {
-    //    filecontent = null;
-    }
+//    void Reset()
+//    {
+//    //    filecontent = null;
+//    }
     
     void ClearUI()
     {
@@ -54,9 +54,12 @@
             else
             {
                 filecontent = ObjEditor.ReadGFD/*z*/(name);
+                if (filecontent != null)
+                {
                 filecontent.parent = null;
                 filecontent.fileparent = this;
                 filecontent.RepairTexture();
+                }
                 // stripify on load instead?
           // OK...
           //      filecontent.Stripify(); // fine. faster and read-only anyway

--
Gitblit v1.6.2