.. | .. |
---|
194 | 194 | { |
---|
195 | 195 | Object3D o; |
---|
196 | 196 | |
---|
| 197 | + boolean isnew = false; |
---|
| 198 | + |
---|
197 | 199 | if (hashtable.containsKey(GetUUID())) |
---|
198 | 200 | { |
---|
199 | 201 | o = hashtable.get(GetUUID()); |
---|
.. | .. |
---|
206 | 208 | } |
---|
207 | 209 | else |
---|
208 | 210 | { |
---|
| 211 | + isnew = true; |
---|
| 212 | + |
---|
209 | 213 | o = new Object3D("copy of " + this.name); |
---|
210 | 214 | |
---|
211 | 215 | hashtable.put(GetUUID(), o); |
---|
.. | .. |
---|
222 | 226 | |
---|
223 | 227 | blockloop = false; |
---|
224 | 228 | } |
---|
225 | | - |
---|
226 | | - ExtractBigData(o); |
---|
| 229 | + |
---|
| 230 | + if (isnew) |
---|
| 231 | + ExtractBigData(o); |
---|
227 | 232 | } |
---|
228 | 233 | |
---|
229 | 234 | void ExtractBigData(Object3D o) |
---|
230 | 235 | { |
---|
| 236 | + //System.err.println("ExtractBigData : " + this + " --> " + o); |
---|
| 237 | + |
---|
231 | 238 | if (o.bRep != null) |
---|
232 | 239 | Grafreed.Assert(o.bRep == this.bRep); |
---|
233 | 240 | |
---|
.. | .. |
---|
238 | 245 | // o.bRep.support = null; |
---|
239 | 246 | // } |
---|
240 | 247 | o.selection = this.selection; |
---|
241 | | - o.versionlist = this.versionlist; |
---|
242 | | - o.versionindex = this.versionindex; |
---|
| 248 | + //o.versionlist = this.versionlist; |
---|
| 249 | + //o.versionindex = this.versionindex; |
---|
243 | 250 | |
---|
244 | 251 | if (this.support != null) |
---|
245 | 252 | { |
---|
.. | .. |
---|
355 | 362 | |
---|
356 | 363 | void RestoreBigData(Object3D o) |
---|
357 | 364 | { |
---|
| 365 | + //System.err.println("RestoreBigData : " + this + " <-- " + o); |
---|
| 366 | + |
---|
358 | 367 | this.bRep = o.bRep; |
---|
359 | 368 | if (this.support != null && o.transientrep != null) |
---|
360 | 369 | { |
---|
.. | .. |
---|
363 | 372 | |
---|
364 | 373 | this.selection = o.selection; |
---|
365 | 374 | |
---|
366 | | - this.versionlist = o.versionlist; |
---|
367 | | - this.versionindex = o.versionindex; |
---|
| 375 | + //this.versionlist = o.versionlist; |
---|
| 376 | + //this.versionindex = o.versionindex; |
---|
368 | 377 | // July 2019 if (this.bRep != null) |
---|
369 | 378 | // this.bRep.support = o.transientrep; |
---|
370 | 379 | // this.support = o.support; |
---|