From 5892f05411c3d4dce2d8a59e0966dc2e1843a971 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sat, 17 Aug 2019 08:33:35 -0400
Subject: [PATCH] Fix L&F nimbus too slow.

---
 Object3D.java |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/Object3D.java b/Object3D.java
index 3772174..c1e3334 100644
--- a/Object3D.java
+++ b/Object3D.java
@@ -36,6 +36,8 @@
     Object3D versionlist[];
     int versionindex = -1;    
         
+    java.util.Hashtable<java.util.UUID, Object3D> versiontable; // = new java.util.Hashtable<java.util.UUID, Object3D>();
+    
     ScriptNode scriptnode;
 
         void InitOthers()
@@ -7417,7 +7419,7 @@
             boundary.y = spot.y - 30;
             boundary.width = spot.width + 60;
             boundary.height = spot.height + 60;
-            clickInfo.g.setColor(Color.red);
+            clickInfo.g.setColor(Color.white);
             int spotw = spot.x + spot.width;
             int spoth = spot.y + spot.height;
             clickInfo.g.fillRect(spot.x, spot.y, spot.width, spot.height);
@@ -7818,21 +7820,27 @@
                     case 3: // '\001'
                         if (modified || opposite)
                         {
+                            if (modified && opposite)
+                                LA.matScale(toParent, totalScale, totalScale, totalScale);
+                            else
                             //LA.matScale(toParent, 1, hScale, vScale);
-                            LA.matScale(toParent, totalScale, 1, 1);
+                                LA.matScale(toParent, totalScale, 1, 1);
                         } // vScale, 1);
                         else
                         {
                             // EXCEPTION!
-                            LA.matScale(toParent, totalScale, totalScale, totalScale);
+                            LA.matScale(toParent, 1, totalScale, totalScale);
                         } // vScale, 1);
                         break;
 
                     case 2: // '\002'
                         if (modified || opposite)
                         {
-                            //LA.matScale(toParent, hScale, 1, vScale);
-                            LA.matScale(toParent, 1, totalScale, 1);
+                            if (modified && opposite)
+                                LA.matScale(toParent, totalScale, totalScale, totalScale);
+                            else
+                                //LA.matScale(toParent, hScale, 1, vScale);
+                                LA.matScale(toParent, 1, totalScale, 1);
                         } else
                         {
                             LA.matScale(toParent, totalScale, 1, totalScale);
@@ -7842,8 +7850,11 @@
                     case 1: // '\003'
                         if (modified || opposite)
                         {
-                            //LA.matScale(toParent, hScale, vScale, 1);
-                            LA.matScale(toParent, 1, 1, totalScale);
+                            if (modified && opposite)
+                                LA.matScale(toParent, totalScale, totalScale, totalScale);
+                            else
+                                //LA.matScale(toParent, hScale, vScale, 1);
+                                LA.matScale(toParent, 1, 1, totalScale);
                         } else
                         {
                             LA.matScale(toParent, totalScale, totalScale, 1);

--
Gitblit v1.6.2