From f9325048496d7cdbcad233f8a6b84c88e79adcc2 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Tue, 17 Sep 2019 20:11:47 -0400
Subject: [PATCH] Rename link2master to link2support.

---
 GroupEditor.java |   37 ++++++++++++++++++++++---------------
 1 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/GroupEditor.java b/GroupEditor.java
index 0d46be5..d328971 100644
--- a/GroupEditor.java
+++ b/GroupEditor.java
@@ -803,7 +803,7 @@
 		genNormalsCADItem.addActionListener(this);
 		genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
 		genNormalsMESHItem.addActionListener(this);
-        if (Globals.ADVANCED)
+        //if (Globals.ADVANCED)
         {
 		genNormalsMINEItem = menu.add(new MenuItem("Stitch Normals"));
 		genNormalsMINEItem.addActionListener(this);
@@ -966,7 +966,7 @@
             currenttab.setName(tabname);
             //added = false;
             resourcecontainer.add(currenttab);
-            resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
+            resourcecontainer.setToolTipTextAt(tabcount++, "Texture " + tabname);
             rowcount = 1;
             colcount = 0;
             texturecount = 0;
@@ -981,6 +981,11 @@
                 currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname));
             }
             
+        columns = 5;
+        
+        if (path[0].contains("D&R") || path[0].contains("Paint"))
+            columns = 4;
+        
             AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab);
             totalcount++;
             
@@ -1195,6 +1200,7 @@
 		//clearButton.addActionListener(this);
 
                 cGridBag row1 = new cGridBag();
+                row1.preferredHeight = 8;
                 
                 // INSERT
                 row1.add(gridButton = GetButton("icons/grid.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
@@ -1235,6 +1241,7 @@
                 oe.toolboxPanel.add(row1);
                 
                 cGridBag row2 = new cGridBag();
+                row2.preferredHeight = 8;
                 
                 row2.add(groupButton = GetButton("icons/group.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
                 groupButton.setToolTipText("Create group");
@@ -1397,7 +1404,7 @@
 //                supportCB.setToolTipText("Enable rigging");
 //                                supportCB.addItemListener(this);
 
-                panel.add(freezeCB = new cCheckBox("Freeze", Globals.FREEZEONMOVE)); //, constraints);
+                panel.add(freezeCB = new cCheckBox("Fast cam", Globals.FREEZEONMOVE)); //, constraints);
                 freezeCB.setToolTipText("Fast moving camera");
                                 freezeCB.addItemListener(this);
 
@@ -1406,9 +1413,12 @@
 
                 panel.Return();
                 
+            if (Globals.ADVANCED)
+            {
                 panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints);
                 crowdCB.setToolTipText("Used for crowds");
                                 crowdCB.addItemListener(this);
+            }
 
                 panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints);
                 smoothCB.setToolTipText("Snapping delay");
@@ -1421,30 +1431,26 @@
                 minshaderCB.setToolTipText("Minimal fast shader");
                                 minshaderCB.addItemListener(this);
                                 
-//        	constraints.gridy += 1;
 //                panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
 //                                speakerMocapCB.addItemListener(this);
 
-                panel.Return();
-                
             if (false)
             {
                 // handled in scripts
-        	//constraints.gridy += 1;
                 panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints);
                                 speakerCameraCB.addItemListener(this);
 
-        	//constraints.gridy += 1;
                 panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints);
                                 speakerFocusCB.addItemListener(this);
 
-        	//constraints.gridy += 1;
-                panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
-                                smoothfocusCB.addItemListener(this);
                 panel.Return();
             }
 
-//constraints.gridx += 1;
+                panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
+                                smoothfocusCB.addItemListener(this);
+                                
+                panel.Return();
+                
 //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints);
 //                debugCB.addItemListener(this);
 
@@ -2083,7 +2089,7 @@
             Object3D obj = (Object3D)group.selection.elementAt(0);
             objEditor.ScreenFit(obj, false);
             
-            cameraView.pingthread.StepToTarget(true);
+            cameraView.pingthread.StepToTarget(); //true);
             refreshContents();
         }
 
@@ -2120,7 +2126,7 @@
                 obj.parent.TransformToWorld(maxima); //, maxima);
             }
             
-            Object3D shadow = new Object3D("Shadow " + obj.name);
+            Object3D shadow = new Object3D("Shadow" + obj.name);
             
             shadow.toParent = LA.newMatrix();
             shadow.fromParent = LA.newMatrix();
@@ -4867,6 +4873,7 @@
                 LA.matTranslateInv(obj.fromParent, -i * scale, 0, 0);
             }
             
+            Globals.lighttouched = true;
             refreshContents();
 	}
 	
@@ -5401,7 +5408,7 @@
                             if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crashes the camera because of invalid lightspace
                             {
                                 CameraPane.camerachangeframe = 0; // don't refuse it
-                                Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
+                                Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent(), true);
                             }
                          //   Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
                          //   Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;

--
Gitblit v1.6.2