From 3c4c16e0a4ca3949a7a37a24607df7f89abfe7ea Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 22 Apr 2019 16:52:58 -0400 Subject: [PATCH] Refactoring phase 3 --- GroupEditor.java | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/GroupEditor.java b/GroupEditor.java index da3ecc4..7cc81e0 100644 --- a/GroupEditor.java +++ b/GroupEditor.java @@ -437,7 +437,7 @@ oe.aConstraints.gridwidth = 1; oe.aConstraints.gridx = 0; - oe.toolbarPanel.add(liveCB = new cCheckBox("Live", CameraPane.isLIVE()), oe.aConstraints); + oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE()), oe.aConstraints); liveCB.addItemListener(this); oe.aConstraints.gridx += 1; @@ -449,7 +449,7 @@ // localCB.addItemListener(this); oe.aConstraints.gridx += 1; - oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", CameraPane.CROWD), oe.aConstraints); + oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), oe.aConstraints); crowdCB.addItemListener(this); oe.aConstraints.gridx += 1; @@ -1782,7 +1782,7 @@ } else if (event.getSource() == computeAOItem) { - CameraPane.drawMode = CameraPane.OCCLUSION; + Globals.drawMode = CameraPane.OCCLUSION; CameraPane.theRenderer.repaint(); } else if (event.getSource() == recompileItem) @@ -2920,7 +2920,8 @@ cameraView.cameras[cameraView.cameracount] = radio.camera; cameraView.targetLookAt.set(radio.camera.lookAt); cameraView.object = group; - cameraView.lighttouched = true; + //cameraView.lighttouched = true; + Globals.lighttouched = true; topView.object = group; frontView.object = group; sideView.object = group; @@ -2956,7 +2957,7 @@ if (useclient) { cameraView.object = client; - cameraView.lighttouched = true; + Globals.lighttouched = true; //topView.object = client; //frontView.object = client; //sideView.object = client; @@ -2964,7 +2965,7 @@ else { cameraView.object = group; - cameraView.lighttouched = true; + Globals.lighttouched = true; //topView.object = group; //frontView.object = group; //sideView.object = group; @@ -4058,7 +4059,7 @@ objEditor.SetText(); // jan 2014 - if (flashIt && !CameraPane.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) + if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) CameraPane.flash = true; if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera) -- Gitblit v1.6.2