From 6266c8a4b2485b29a7d5bcb217460d7aad3e1c4a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 25 Aug 2019 20:58:10 -0400 Subject: [PATCH] Proto version slider. --- 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