From 5e6a6f3319f0c4c687fe71952ac9ecc17792b83a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 10 Jun 2019 20:37:18 -0400 Subject: [PATCH] Fix normal for mesh --- 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