From 60cec91731a350fe67e9b5ffe7a00d70e9026314 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Thu, 22 Aug 2019 22:45:00 -0400
Subject: [PATCH] Min shader.

---
 Object3D.java |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/Object3D.java b/Object3D.java
index 5df575e..3c575b0 100644
--- a/Object3D.java
+++ b/Object3D.java
@@ -687,7 +687,7 @@
         {
             if (maxcount != 1)
             {
-                new Exception().printStackTrace();
+                //new Exception().printStackTrace();
             }
             
             toParentMarked = LA.newMatrix();
@@ -2369,11 +2369,6 @@
             
             InitOthers();
             
-            if (this instanceof Camera)
-            {
-                material.shift = 90;
-            }
-
             material.multiply = multiply;
             
             if (multiply)
@@ -7716,7 +7711,9 @@
                 
                 scale *= 0.05f * Globals.theRenderer.RenderCamera().Distance();
                 
-                if (modified || opposite)
+                // Modified could snap
+                if (//modified ||
+                        opposite)
                 {
                     //assert(false);
                             /*
@@ -7810,7 +7807,7 @@
 
                 if (modified)
                 {
-                    // Rotate 90 degrees
+                    // Rotate 45 degrees
                     angle /= (Math.PI / 4);
                     angle = Math.floor(angle + 0.5);
                     angle *= (Math.PI / 4);
@@ -7896,7 +7893,7 @@
                     case 3: // '\001'
                         if (modified || opposite)
                         {
-                            if (modified && opposite)
+                            if (modified) // && opposite)
                                 LA.matScale(toParent, totalScale, totalScale, totalScale);
                             else
                             //LA.matScale(toParent, 1, hScale, vScale);
@@ -7912,7 +7909,7 @@
                     case 2: // '\002'
                         if (modified || opposite)
                         {
-                            if (modified && opposite)
+                            if (modified) // && opposite)
                                 LA.matScale(toParent, totalScale, totalScale, totalScale);
                             else
                                 //LA.matScale(toParent, hScale, 1, vScale);
@@ -7926,7 +7923,7 @@
                     case 1: // '\003'
                         if (modified || opposite)
                         {
-                            if (modified && opposite)
+                            if (modified) // && opposite)
                                 LA.matScale(toParent, totalScale, totalScale, totalScale);
                             else
                                 //LA.matScale(toParent, hScale, vScale, 1);

--
Gitblit v1.6.2