From 89b25e7cc97f6fe221dfd41c4d463500f8a31bc1 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Tue, 25 Jun 2019 23:58:09 -0400 Subject: [PATCH] Edit panel pin state. --- 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