From 46dbce888e7c3eff8969f1ddbe22e144410b67f4 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sun, 07 Jul 2019 10:20:06 -0400
Subject: [PATCH] Put back serial IDs for cone and torus.

---
 Object3D.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Object3D.java b/Object3D.java
index e829908..442b170 100644
--- a/Object3D.java
+++ b/Object3D.java
@@ -5043,6 +5043,7 @@
 
             if (child == null)
                 continue;
+            
             if (child.HasTransparency() && child.size() != 0)
             {
                 cTreePath leaf = child.Select(indexcount, deselect);
@@ -5797,7 +5798,7 @@
         
         if (!selectmode && //display.DrawMode() != display.SELECTION &&
                 //(touched || (bRep != null && bRep.displaylist <= 0)))
-                (Globals.isLIVE() && Globals.COMPUTESHADOWWHENLIVE || touched || (bRep != null && bRep.displaylist <= 0)))
+                (Globals.isLIVE() && Globals.COMPUTESHADOWWHENLIVE || touched && Globals.COMPUTESHADOWWHENLIVE)) // || (bRep != null && bRep.displaylist <= 0)))
         {
             Globals.lighttouched = true;
         } // all panes...
@@ -5929,6 +5930,7 @@
             if (GetBRep() != null)
             {
                 display.NextIndex();
+                
                 // vertex color conflict : gl.glCallList(list);
                 DrawNode(display, root, selected);
                 if (this instanceof BezierPatch)
@@ -7286,8 +7288,8 @@
 //            {
 //                CameraPane.Ymax = spoth;
 //            }
-            info.g.drawArc(boundary.x, boundary.y,
-                    boundary.width, boundary.height, 0, 360);
+            info.g.drawArc(boundary.x + info.DX, boundary.y + info.DY,
+                    (int)(boundary.width * info.W), (int)(boundary.height * info.W), 0, 360);
             //info.g.drawArc(spot.x, spotw, spot.width/2, boundary.height/2, 0, 360);
 //            if (CameraPane.Xmin > boundary.x)
 //            {

--
Gitblit v1.6.2