From 91106535bc5aa5e67cbb02a67cf6de1519cba0e4 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 22 Apr 2019 13:27:24 -0400
Subject: [PATCH] iCameraPane refactoring phase 1.

---
 cMesh.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cMesh.java b/cMesh.java
index af52c25..c2eb4ad 100644
--- a/cMesh.java
+++ b/cMesh.java
@@ -355,7 +355,9 @@
         //        DynamicNode handle = new DynamicNode(center.x, center.y, center.z, 0 /*0 , 1 or Float.MAX_VALUE*/, 0);
         //        Phys.addHandle(handle);
                 
-            for (int k=Phys.allNodes.size(); --k>=0;) // warning: "add handle" adds a node
+            int size = Phys.allNodes.size();
+            
+            for (int k=0; k < size; k++) // warning: "add handle" adds a node
             {
                 DynamicNode dn = Phys.allNodes.get(k);
                 DynamicNode handle = new DynamicNode(dn.position.x, dn.position.y, dn.position.z, 0 /*0 , 1 or Float.MAX_VALUE*/, 0);
@@ -642,7 +644,7 @@
             gl.glEnable(gl.GL_LIGHTING);
         }
         
-        if (live && display.isLIVE() && display.drawMode == CameraPane.DEFAULT)
+        if (live && Globals.isLIVE() && display.DrawMode() == CameraPane.DEFAULT)
         {
         //System.out.println("UPDATE");
             if (Phys == null)

--
Gitblit v1.6.2