From 26b49d8e26625491f4a407a05e9bc9d72037f938 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 17 Jun 2019 18:50:50 -0400
Subject: [PATCH] Global scale using X blue handle.

---
 Object3D.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/Object3D.java b/Object3D.java
index 28b696b..17916d8 100644
--- a/Object3D.java
+++ b/Object3D.java
@@ -5673,10 +5673,12 @@
         boolean selectmode = display.DrawMode() == display.SELECTION || display.IsDebugSelection();
         
         if (!selectmode && //display.DrawMode() != display.SELECTION &&
-                (touched || (bRep != null && bRep.displaylist <= 0)))
+                //(touched || (bRep != null && bRep.displaylist <= 0)))
+                (Globals.isLIVE() || touched && (bRep != null && bRep.displaylist <= 0)))
         {
             Globals.lighttouched = true;
         } // all panes...
+        
         //if (usecalllists && display.DrawMode() != display.SELECTION && display.DrawMode() != display.SHADOW &&
         if (bRep != null && usecalllists && !selectmode && // june 2013 display.DrawMode() != display.SHADOW &&
                 (touched || (bRep != null && bRep.displaylist <= 0)))
@@ -7102,7 +7104,7 @@
             spot.translate(32, 32);
             spotw = spot.x + spot.width;
             spoth = spot.y + spot.height;
-            info.g.setColor(Color.blue);
+            info.g.setColor(Color.cyan);
             info.g.fillRect(spot.x, spot.y, spot.width, spot.height);
 //            if (CameraPane.Xmin > spot.x)
 //            {
@@ -7120,11 +7122,12 @@
 //            {
 //                CameraPane.Ymax = spoth;
 //            }
-            // bonhommes info.g.drawLine(spotw, spoth, spotw, spoth - 15);
-            //info.g.drawLine(spotw, spoth, spotw - 15, spoth);
+            // bonhommes info.g.drawLine(spotw, spoth, spotw, spoth - boundary.height/2); // 15
+            //info.g.drawLine(spotw, spoth, spotw - boundary.width/2, spoth); // 15
             spot.translate(0, -32);
-            info.g.setColor(Color.green);
+            info.g.setColor(Color.yellow);
             info.g.fillRect(spot.x, spot.y, spot.width, spot.height);
+            info.g.setColor(Color.green);
 //            if (CameraPane.Xmin > spot.x)
 //            {
 //                CameraPane.Xmin = spot.x;
@@ -7442,19 +7445,20 @@
                 switch (info.pane.RenderCamera().viewCode)
                 {
                     case 3: // '\001'
-                        if (modified)
+                        if (modified || opposite)
                         {
                             //LA.matScale(toParent, 1, hScale, vScale);
                             LA.matScale(toParent, totalScale, 1, 1);
                         } // vScale, 1);
                         else
                         {
+                            // EXCEPTION!
                             LA.matScale(toParent, totalScale, totalScale, totalScale);
                         } // vScale, 1);
                         break;
 
                     case 2: // '\002'
-                        if (modified)
+                        if (modified || opposite)
                         {
                             //LA.matScale(toParent, hScale, 1, vScale);
                             LA.matScale(toParent, 1, totalScale, 1);
@@ -7465,7 +7469,7 @@
                         break;
 
                     case 1: // '\003'
-                        if (modified)
+                        if (modified || opposite)
                         {
                             //LA.matScale(toParent, hScale, vScale, 1);
                             LA.matScale(toParent, 1, 1, totalScale);

--
Gitblit v1.6.2