.. | .. |
---|
174 | 174 | { |
---|
175 | 175 | Object3D o = hashtable.get(GetUUID()); |
---|
176 | 176 | |
---|
177 | | - assert(this.bRep == o.bRep); |
---|
| 177 | + Grafreed.Assert(this.bRep == o.bRep); |
---|
178 | 178 | if (this.bRep != null) |
---|
179 | 179 | assert(this.bRep.support == o.transientrep); |
---|
180 | 180 | |
---|
.. | .. |
---|
563 | 563 | toParent = LA.newMatrix(); |
---|
564 | 564 | fromParent = LA.newMatrix(); |
---|
565 | 565 | } |
---|
| 566 | + |
---|
566 | 567 | if (toParentMarked == null) |
---|
567 | 568 | { |
---|
568 | 569 | if (maxcount != 1) |
---|
569 | 570 | { |
---|
570 | 571 | new Exception().printStackTrace(); |
---|
571 | 572 | } |
---|
| 573 | + |
---|
572 | 574 | toParentMarked = LA.newMatrix(); |
---|
573 | 575 | fromParentMarked = LA.newMatrix(); |
---|
574 | 576 | } |
---|
.. | .. |
---|
5572 | 5574 | boolean NeedSupport() |
---|
5573 | 5575 | { |
---|
5574 | 5576 | return |
---|
5575 | | - CameraPane.SUPPORT && (!CameraPane.movingcamera || !Globals.FREEZEONMOVE) && link2master && /*live &&*/ support != null |
---|
| 5577 | + CameraPane.SUPPORT && (!CameraPane.movingcamera || (!Globals.FREEZEONMOVE && Globals.isLIVE())) && link2master && /*live &&*/ support != null |
---|
5576 | 5578 | // PROBLEM with CROWD!! |
---|
5577 | 5579 | && (Globals.DrawMode() == iCameraPane.SHADOW || !Globals.RENDERSHADOW || Globals.CROWD); |
---|
5578 | 5580 | } |
---|
5579 | 5581 | |
---|
5580 | 5582 | static boolean DEBUG_SELECTION = false; |
---|
| 5583 | + |
---|
| 5584 | + boolean IsLive() |
---|
| 5585 | + { |
---|
| 5586 | + if (live) |
---|
| 5587 | + return true; |
---|
| 5588 | + |
---|
| 5589 | + if (parent == null) |
---|
| 5590 | + return false; |
---|
| 5591 | + |
---|
| 5592 | + return parent.IsLive(); |
---|
| 5593 | + } |
---|
5581 | 5594 | |
---|
5582 | 5595 | void Draw(iCameraPane display, Object3D /*Composite*/ root, boolean selected, boolean blocked) |
---|
5583 | 5596 | { |
---|
.. | .. |
---|
5640 | 5653 | support = support; |
---|
5641 | 5654 | |
---|
5642 | 5655 | //boolean usecalllists = IsStatic() && GetBRep() != null && (!CameraPane.SUPPORT || support == null || !link2master); // !(this instanceof cSpring) && !(this instanceof BezierPatch); |
---|
5643 | | - boolean usecalllists = false; // IsStatic() && GetBRep() != null && (!CameraPane.SUPPORT || support == null) && !link2master; // !(this instanceof cSpring) && !(this instanceof BezierPatch); |
---|
| 5656 | + boolean usecalllists = IsLive(); // IsStatic() && GetBRep() != null && (!CameraPane.SUPPORT || support == null) && !link2master; // !(this instanceof cSpring) && !(this instanceof BezierPatch); |
---|
5644 | 5657 | |
---|
5645 | 5658 | if (!usecalllists && bRep != null && bRep.displaylist > 0) |
---|
5646 | 5659 | { |
---|
.. | .. |
---|
5660 | 5673 | boolean selectmode = display.DrawMode() == display.SELECTION || display.IsDebugSelection(); |
---|
5661 | 5674 | |
---|
5662 | 5675 | if (!selectmode && //display.DrawMode() != display.SELECTION && |
---|
5663 | | - (touched || (bRep != null && bRep.displaylist <= 0))) |
---|
| 5676 | + //(touched || (bRep != null && bRep.displaylist <= 0))) |
---|
| 5677 | + (Globals.isLIVE() || touched && (bRep != null && bRep.displaylist <= 0))) |
---|
5664 | 5678 | { |
---|
5665 | 5679 | Globals.lighttouched = true; |
---|
5666 | 5680 | } // all panes... |
---|
| 5681 | + |
---|
5667 | 5682 | //if (usecalllists && display.DrawMode() != display.SELECTION && display.DrawMode() != display.SHADOW && |
---|
5668 | 5683 | if (bRep != null && usecalllists && !selectmode && // june 2013 display.DrawMode() != display.SHADOW && |
---|
5669 | 5684 | (touched || (bRep != null && bRep.displaylist <= 0))) |
---|
.. | .. |
---|
7089 | 7104 | spot.translate(32, 32); |
---|
7090 | 7105 | spotw = spot.x + spot.width; |
---|
7091 | 7106 | spoth = spot.y + spot.height; |
---|
7092 | | - info.g.setColor(Color.blue); |
---|
| 7107 | + info.g.setColor(Color.cyan); |
---|
7093 | 7108 | info.g.fillRect(spot.x, spot.y, spot.width, spot.height); |
---|
7094 | 7109 | // if (CameraPane.Xmin > spot.x) |
---|
7095 | 7110 | // { |
---|
.. | .. |
---|
7107 | 7122 | // { |
---|
7108 | 7123 | // CameraPane.Ymax = spoth; |
---|
7109 | 7124 | // } |
---|
7110 | | - // bonhommes info.g.drawLine(spotw, spoth, spotw, spoth - 15); |
---|
7111 | | - //info.g.drawLine(spotw, spoth, spotw - 15, spoth); |
---|
| 7125 | + // bonhommes info.g.drawLine(spotw, spoth, spotw, spoth - boundary.height/2); // 15 |
---|
| 7126 | + //info.g.drawLine(spotw, spoth, spotw - boundary.width/2, spoth); // 15 |
---|
7112 | 7127 | spot.translate(0, -32); |
---|
7113 | | - info.g.setColor(Color.green); |
---|
| 7128 | + info.g.setColor(Color.yellow); |
---|
7114 | 7129 | info.g.fillRect(spot.x, spot.y, spot.width, spot.height); |
---|
| 7130 | + info.g.setColor(Color.green); |
---|
7115 | 7131 | // if (CameraPane.Xmin > spot.x) |
---|
7116 | 7132 | // { |
---|
7117 | 7133 | // CameraPane.Xmin = spot.x; |
---|
.. | .. |
---|
7429 | 7445 | switch (info.pane.RenderCamera().viewCode) |
---|
7430 | 7446 | { |
---|
7431 | 7447 | case 3: // '\001' |
---|
7432 | | - if (modified) |
---|
| 7448 | + if (modified || opposite) |
---|
7433 | 7449 | { |
---|
7434 | 7450 | //LA.matScale(toParent, 1, hScale, vScale); |
---|
7435 | 7451 | LA.matScale(toParent, totalScale, 1, 1); |
---|
7436 | 7452 | } // vScale, 1); |
---|
7437 | 7453 | else |
---|
7438 | 7454 | { |
---|
7439 | | - LA.matScale(toParent, totalScale, totalScale, totalScale); |
---|
| 7455 | + LA.matScale(toParent, 1, totalScale, totalScale); |
---|
7440 | 7456 | } // vScale, 1); |
---|
7441 | 7457 | break; |
---|
7442 | 7458 | |
---|
7443 | 7459 | case 2: // '\002' |
---|
7444 | | - if (modified) |
---|
| 7460 | + if (modified || opposite) |
---|
7445 | 7461 | { |
---|
7446 | 7462 | //LA.matScale(toParent, hScale, 1, vScale); |
---|
7447 | 7463 | LA.matScale(toParent, 1, totalScale, 1); |
---|
.. | .. |
---|
7452 | 7468 | break; |
---|
7453 | 7469 | |
---|
7454 | 7470 | case 1: // '\003' |
---|
7455 | | - if (modified) |
---|
| 7471 | + if (modified || opposite) |
---|
7456 | 7472 | { |
---|
7457 | 7473 | //LA.matScale(toParent, hScale, vScale, 1); |
---|
7458 | 7474 | LA.matScale(toParent, 1, 1, totalScale); |
---|