Normand Briere
2019-06-16 372b7fd481a476cd659713a4a01bf28bf6760cbe
Object3D.java
....@@ -174,7 +174,7 @@
174174 {
175175 Object3D o = hashtable.get(GetUUID());
176176
177
- assert(this.bRep == o.bRep);
177
+ Grafreed.Assert(this.bRep == o.bRep);
178178 if (this.bRep != null)
179179 assert(this.bRep.support == o.transientrep);
180180
....@@ -563,12 +563,14 @@
563563 toParent = LA.newMatrix();
564564 fromParent = LA.newMatrix();
565565 }
566
+
566567 if (toParentMarked == null)
567568 {
568569 if (maxcount != 1)
569570 {
570571 new Exception().printStackTrace();
571572 }
573
+
572574 toParentMarked = LA.newMatrix();
573575 fromParentMarked = LA.newMatrix();
574576 }
....@@ -5572,12 +5574,23 @@
55725574 boolean NeedSupport()
55735575 {
55745576 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
55765578 // PROBLEM with CROWD!!
55775579 && (Globals.DrawMode() == iCameraPane.SHADOW || !Globals.RENDERSHADOW || Globals.CROWD);
55785580 }
55795581
55805582 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
+ }
55815594
55825595 void Draw(iCameraPane display, Object3D /*Composite*/ root, boolean selected, boolean blocked)
55835596 {
....@@ -5640,7 +5653,7 @@
56405653 support = support;
56415654
56425655 //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);
56445657
56455658 if (!usecalllists && bRep != null && bRep.displaylist > 0)
56465659 {
....@@ -7089,7 +7102,7 @@
70897102 spot.translate(32, 32);
70907103 spotw = spot.x + spot.width;
70917104 spoth = spot.y + spot.height;
7092
- info.g.setColor(Color.blue);
7105
+ info.g.setColor(Color.cyan);
70937106 info.g.fillRect(spot.x, spot.y, spot.width, spot.height);
70947107 // if (CameraPane.Xmin > spot.x)
70957108 // {
....@@ -7107,11 +7120,12 @@
71077120 // {
71087121 // CameraPane.Ymax = spoth;
71097122 // }
7110
- // bonhommes info.g.drawLine(spotw, spoth, spotw, spoth - 15);
7111
- //info.g.drawLine(spotw, spoth, spotw - 15, spoth);
7123
+ // bonhommes info.g.drawLine(spotw, spoth, spotw, spoth - boundary.height/2); // 15
7124
+ //info.g.drawLine(spotw, spoth, spotw - boundary.width/2, spoth); // 15
71127125 spot.translate(0, -32);
7113
- info.g.setColor(Color.green);
7126
+ info.g.setColor(Color.yellow);
71147127 info.g.fillRect(spot.x, spot.y, spot.width, spot.height);
7128
+ info.g.setColor(Color.green);
71157129 // if (CameraPane.Xmin > spot.x)
71167130 // {
71177131 // CameraPane.Xmin = spot.x;
....@@ -7429,19 +7443,19 @@
74297443 switch (info.pane.RenderCamera().viewCode)
74307444 {
74317445 case 3: // '\001'
7432
- if (modified)
7446
+ if (modified || opposite)
74337447 {
74347448 //LA.matScale(toParent, 1, hScale, vScale);
74357449 LA.matScale(toParent, totalScale, 1, 1);
74367450 } // vScale, 1);
74377451 else
74387452 {
7439
- LA.matScale(toParent, totalScale, totalScale, totalScale);
7453
+ LA.matScale(toParent, 1, totalScale, totalScale);
74407454 } // vScale, 1);
74417455 break;
74427456
74437457 case 2: // '\002'
7444
- if (modified)
7458
+ if (modified || opposite)
74457459 {
74467460 //LA.matScale(toParent, hScale, 1, vScale);
74477461 LA.matScale(toParent, 1, totalScale, 1);
....@@ -7452,7 +7466,7 @@
74527466 break;
74537467
74547468 case 1: // '\003'
7455
- if (modified)
7469
+ if (modified || opposite)
74567470 {
74577471 //LA.matScale(toParent, hScale, vScale, 1);
74587472 LA.matScale(toParent, 1, 1, totalScale);