.. | .. |
---|
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 | { |
---|
.. | .. |
---|
401 | 405 | { |
---|
402 | 406 | child = (Object3D) e.nextElement(); |
---|
403 | 407 | } |
---|
404 | | - |
---|
405 | 408 | } |
---|
406 | 409 | |
---|
407 | 410 | void createEditWindow(GroupEditor callee, boolean newWindow) //, boolean root) |
---|
.. | .. |
---|
790 | 793 | |
---|
791 | 794 | void draw(ClickInfo info, int level, boolean select) |
---|
792 | 795 | { |
---|
| 796 | + new Exception().printStackTrace(); |
---|
| 797 | + |
---|
793 | 798 | ClickInfo newInfo = new ClickInfo(); |
---|
794 | 799 | newInfo.flags = info.flags; |
---|
795 | 800 | newInfo.bounds = info.bounds; |
---|
.. | .. |
---|
876 | 881 | } |
---|
877 | 882 | catch (Exception e) |
---|
878 | 883 | { |
---|
879 | | - System.err.println("FAILED: " + this); |
---|
| 884 | + // System.err.println("FAILED: " + this); |
---|
880 | 885 | failedPigment = true; |
---|
881 | 886 | } |
---|
882 | 887 | |
---|