.. | .. |
---|
22 | 22 | return false; // ???? false; |
---|
23 | 23 | } |
---|
24 | 24 | |
---|
25 | | - void Reset() |
---|
26 | | - { |
---|
27 | | - // filecontent = null; |
---|
28 | | - } |
---|
| 25 | +// void Reset() |
---|
| 26 | +// { |
---|
| 27 | +// // filecontent = null; |
---|
| 28 | +// } |
---|
29 | 29 | |
---|
30 | 30 | void ClearUI() |
---|
31 | 31 | { |
---|
.. | .. |
---|
54 | 54 | else |
---|
55 | 55 | { |
---|
56 | 56 | filecontent = ObjEditor.ReadGFD/*z*/(name); |
---|
| 57 | + if (filecontent != null) |
---|
| 58 | + { |
---|
57 | 59 | filecontent.parent = null; |
---|
58 | 60 | filecontent.fileparent = this; |
---|
59 | 61 | filecontent.RepairTexture(); |
---|
| 62 | + } |
---|
60 | 63 | // stripify on load instead? |
---|
61 | 64 | // OK... |
---|
62 | 65 | // filecontent.Stripify(); // fine. faster and read-only anyway |
---|
.. | .. |
---|
108 | 111 | //if (filecontent == null) |
---|
109 | 112 | // return 0; |
---|
110 | 113 | |
---|
111 | | - return count>0?1:0; // GetObject().Size(); |
---|
| 114 | + return count>1?1:0; // GetObject().Size(); |
---|
112 | 115 | } |
---|
113 | 116 | |
---|
114 | 117 | public int size() |
---|