From b33ef80d78f01a6a61f4248b1bb7deaade42d503 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 16 Jun 2019 11:49:21 -0400 Subject: [PATCH] Attribute editor --- cSpring.java | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/cSpring.java b/cSpring.java index 47b7769..b5d339c 100644 --- a/cSpring.java +++ b/cSpring.java @@ -565,7 +565,7 @@ // } //new Exception().printStackTrace(); - GL gl = display.GetGL(); // getGL(); + GL gl = display.GetGL0(); // getGL(); //gl.glDisable(GL.GL_LIGHTING); @@ -1208,7 +1208,10 @@ } if (edges.size()%2 != 0) + { + new Exception().printStackTrace(); System.exit(0); + } } // if (clearsprings) @@ -1516,7 +1519,10 @@ second = springs.get((i+1)%springs.size()); if (first == second) + { + new Exception().printStackTrace(); System.exit(0); + } temp.set(first.GetOther(this).position); temp.sub(position); @@ -1646,7 +1652,10 @@ Spring second = springs.get((i+1)%springs.size()); if (first == second) + { + new Exception().printStackTrace(); System.exit(0); + } temp.set(first.GetOther(this).position); temp.sub(position); @@ -1715,7 +1724,7 @@ // Phys.matrix.Transform(normal); - if (position instanceof Vertex) + if (position instanceof Vertex && ((Vertex)position).norm != null) ((Vertex)position).norm.set(normal.x,normal.y,normal.z); } @@ -3289,6 +3298,7 @@ if (N2.mass == Float.MAX_VALUE) { + new Exception().printStackTrace(); System.exit(0); magnitude *= solidity; // * K; -- Gitblit v1.6.2