Normand Briere
2018-12-15 6ed65dcb597fb2153cef75bf1845978f1115658c
FileObject.java
....@@ -22,10 +22,10 @@
2222 return false; // ???? false;
2323 }
2424
25
- void Reset()
26
- {
27
- // filecontent = null;
28
- }
25
+// void Reset()
26
+// {
27
+// // filecontent = null;
28
+// }
2929
3030 void ClearUI()
3131 {
....@@ -54,9 +54,12 @@
5454 else
5555 {
5656 filecontent = ObjEditor.ReadGFD/*z*/(name);
57
+ if (filecontent != null)
58
+ {
5759 filecontent.parent = null;
5860 filecontent.fileparent = this;
5961 filecontent.RepairTexture();
62
+ }
6063 // stripify on load instead?
6164 // OK...
6265 // filecontent.Stripify(); // fine. faster and read-only anyway
....@@ -108,7 +111,7 @@
108111 //if (filecontent == null)
109112 // return 0;
110113
111
- return count>0?1:0; // GetObject().Size();
114
+ return count>1?1:0; // GetObject().Size();
112115 }
113116
114117 public int size()