From 98896326eb94666451b7e419becfb5d721840313 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 10 Jun 2019 20:36:03 -0400
Subject: [PATCH] Fix shadow in light mode

---
 GroupEditor.java |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/GroupEditor.java b/GroupEditor.java
index 5d4b4bf..3fdc5c4 100644
--- a/GroupEditor.java
+++ b/GroupEditor.java
@@ -3041,7 +3041,7 @@
 				child.CloseUI();
                                 listUI.remove(child);
                                 
-                                child.editWindow = null; // ???????????
+                                //child.editWindow = null; // ???????????
 			}
 			objEditor.ctrlPanel.FlushUI();
 			//objEditor.jTree.clearSelection();
@@ -4310,15 +4310,13 @@
 			
                         objEditor.SetText(); // jan 2014
                         
-                        Object3D object = (Object3D) tps[0].getLastPathComponent();
-                        
-			if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(object instanceof Camera))
+			if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
 				CameraPane.flash = true;
                         
-			if (tps != null && tps.length > 0 && object instanceof Camera)
+			if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
                             // a camera
                         {
-                            if (object != Globals.theRenderer.LightCamera())
+                            if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
                             {
                                 CameraPane.camerachangeframe = 0; // don't refuse it
                                 Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());

--
Gitblit v1.6.2