.. | .. |
---|
278 | 278 | frame.setMenuBar(menuBar = new MenuBar()); |
---|
279 | 279 | menuBar.add(fileMenu = new Menu("File")); |
---|
280 | 280 | fileMenu.add(newItem = new MenuItem("New")); |
---|
281 | | - fileMenu.add(loadItem = new MenuItem("Load...")); |
---|
| 281 | + fileMenu.add(loadItem = new MenuItem("Open...")); |
---|
282 | 282 | |
---|
283 | 283 | //oe.menuBar.add(menu = new Menu("Include")); |
---|
284 | 284 | Menu menu = new Menu("Import"); |
---|
.. | .. |
---|
2072 | 2072 | |
---|
2073 | 2073 | void LoadObjFile(String fullname) |
---|
2074 | 2074 | { |
---|
2075 | | - /* |
---|
| 2075 | + System.out.println("Loading " + fullname); |
---|
| 2076 | + /**/ |
---|
2076 | 2077 | //lastFilename = fullname; |
---|
2077 | 2078 | if(loadObjThread == null) |
---|
2078 | 2079 | { |
---|
2079 | | - loadObjThread = new LoadOBJThread(); |
---|
2080 | | - loadObjThread.start(); |
---|
| 2080 | + loadObjThread = new LoadOBJThread(); |
---|
| 2081 | + loadObjThread.start(); |
---|
2081 | 2082 | } |
---|
2082 | 2083 | |
---|
2083 | 2084 | loadObjThread.add(fullname); |
---|
2084 | | - */ |
---|
| 2085 | + /**/ |
---|
2085 | 2086 | |
---|
2086 | | - System.out.println("Loading " + fullname); |
---|
2087 | | - makeSomething(new FileObject(fullname, true), true); |
---|
| 2087 | + //makeSomething(new FileObject(fullname, true), true); |
---|
2088 | 2088 | } |
---|
2089 | 2089 | |
---|
2090 | 2090 | void LoadGFDFile(String fullname) |
---|
.. | .. |
---|
3214 | 3214 | objEditor.refreshContents(); |
---|
3215 | 3215 | } |
---|
3216 | 3216 | |
---|
3217 | | - static public byte[] Compress(Object o) |
---|
| 3217 | + static public byte[] Compress(Object3D o) |
---|
3218 | 3218 | { |
---|
3219 | 3219 | try |
---|
3220 | 3220 | { |
---|
.. | .. |
---|
3222 | 3222 | java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos); |
---|
3223 | 3223 | ObjectOutputStream out = new ObjectOutputStream(zstream); |
---|
3224 | 3224 | |
---|
| 3225 | + Object3D parent = o.parent; |
---|
| 3226 | + o.parent = null; |
---|
| 3227 | + |
---|
3225 | 3228 | out.writeObject(o); |
---|
3226 | 3229 | |
---|
| 3230 | + o.parent = parent; |
---|
| 3231 | + |
---|
3227 | 3232 | out.flush(); |
---|
3228 | 3233 | |
---|
3229 | 3234 | zstream.close(); |
---|