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 | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/FileObject.java b/FileObject.java index 0ebe57c..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 @@ -108,7 +111,7 @@ //if (filecontent == null) // return 0; - return count>0?1:0; // GetObject().Size(); + return count>1?1:0; // GetObject().Size(); } public int size() -- Gitblit v1.6.2