Skip to content

Commit b864372

Browse files
louhystephengold
authored andcommitted
Fix for NPE when running TestGImpactShape via TestChooser (#1151)
1 parent acdeef5 commit b864372

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jme3-examples/src/main/java/jme3test/bullet/shape/TestGimpactShape.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public class TestGimpactShape extends SimpleApplication {
106106
public static void main(String[] args) {
107107
test = new TestGimpactShape();
108108
test.setSettings(new AppSettings(true));
109-
test.settings.setFrameRate(60);
109+
test.settings.setVSync(true);
110110
if (SKIP_SETTINGS) {
111111
test.settings.setWidth(1920);
112112
test.settings.setHeight(1150);
@@ -117,6 +117,7 @@ public static void main(String[] args) {
117117

118118
@Override
119119
public void simpleInitApp() {
120+
test = this;
120121
getCamera().setLocation(new Vector3f(40, 30, 160));
121122
getCamera().lookAt(new Vector3f(40, -5, 0), Vector3f.UNIT_Y);
122123
getFlyByCamera().setMoveSpeed(25);

0 commit comments

Comments
 (0)