diff --git a/engine/src/core/com/jme3/app/Application.java b/engine/src/core/com/jme3/app/Application.java index 8dc2c832b..517ec6108 100644 --- a/engine/src/core/com/jme3/app/Application.java +++ b/engine/src/core/com/jme3/app/Application.java @@ -99,6 +99,7 @@ public class Application implements SystemListener { * Create a new instance of Application. */ public Application(){ + initStateManager(); } /** @@ -206,6 +207,10 @@ public class Application implements SystemListener { if (renderManager != null) { renderManager.setTimer(timer); } + } + + public Timer getTimer(){ + return timer; } private void initDisplay(){ @@ -497,7 +502,6 @@ public class Application implements SystemListener { initInput(); } initAudio(); - initStateManager(); // update timer so that the next delta is not too large // timer.update();