From b864372256800bdd4fda94fd70cfcfd736b04bb0 Mon Sep 17 00:00:00 2001 From: Lou Hamersly Date: Thu, 25 Jul 2019 11:08:40 -0400 Subject: [PATCH] Fix for NPE when running TestGImpactShape via TestChooser (#1151) --- .../src/main/java/jme3test/bullet/shape/TestGimpactShape.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jme3-examples/src/main/java/jme3test/bullet/shape/TestGimpactShape.java b/jme3-examples/src/main/java/jme3test/bullet/shape/TestGimpactShape.java index 3c919268a..484f0f177 100644 --- a/jme3-examples/src/main/java/jme3test/bullet/shape/TestGimpactShape.java +++ b/jme3-examples/src/main/java/jme3test/bullet/shape/TestGimpactShape.java @@ -106,7 +106,7 @@ public class TestGimpactShape extends SimpleApplication { public static void main(String[] args) { test = new TestGimpactShape(); test.setSettings(new AppSettings(true)); - test.settings.setFrameRate(60); + test.settings.setVSync(true); if (SKIP_SETTINGS) { test.settings.setWidth(1920); test.settings.setHeight(1150); @@ -117,6 +117,7 @@ public class TestGimpactShape extends SimpleApplication { @Override public void simpleInitApp() { + test = this; getCamera().setLocation(new Vector3f(40, 30, 160)); getCamera().lookAt(new Vector3f(40, -5, 0), Vector3f.UNIT_Y); getFlyByCamera().setMoveSpeed(25);