.. | .. |
---|
279 | 279 | |
---|
280 | 280 | Composite compo = new Composite(); |
---|
281 | 281 | |
---|
282 | | - super.deepCopySelf(compo); |
---|
| 282 | + super.deepCopyNode(compo); |
---|
| 283 | + |
---|
| 284 | + compo.count = 2; |
---|
283 | 285 | |
---|
284 | 286 | for (int i = 0; i < Children().size(); i++) |
---|
285 | 287 | { |
---|
286 | 288 | Object3D obj = (Object3D) Children().reserve(i); |
---|
| 289 | + if (obj == null) |
---|
| 290 | + continue; |
---|
287 | 291 | compo.addChild(obj.copyExpand()); |
---|
288 | 292 | Children().release(i); |
---|
289 | 293 | } |
---|
.. | .. |
---|
293 | 297 | return compo; |
---|
294 | 298 | } |
---|
295 | 299 | |
---|
296 | | - protected void deepCopySelf(Object3D other) |
---|
| 300 | + protected void deepCopyNode(Object3D other) |
---|
297 | 301 | { |
---|
298 | | - super.deepCopySelf(other); |
---|
| 302 | + super.deepCopyNode(other); |
---|
299 | 303 | |
---|
300 | 304 | if (false) |
---|
301 | 305 | { |
---|