From f6e3a3eab20b8fa1a353ae4e2a788a1834d9ba19 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 17 Nov 2011 01:23:54 +0000 Subject: [PATCH] - set NanoTimer when detaching VideoRecorderAppState - make File in VideoRecorderAppState accessible git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8708 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/app/state/VideoRecorderAppState.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java b/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java index d73c74154..e35adddd3 100644 --- a/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java +++ b/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java @@ -6,6 +6,7 @@ import com.jme3.renderer.Camera; import com.jme3.renderer.RenderManager; import com.jme3.renderer.ViewPort; import com.jme3.renderer.queue.RenderQueue; +import com.jme3.system.NanoTimer; import com.jme3.texture.FrameBuffer; import com.jme3.util.BufferUtils; import com.jme3.util.Screenshots; @@ -32,6 +33,14 @@ public class VideoRecorderAppState extends AbstractAppState { this.file = file; } + public File getFile() { + return file; + } + + public void setFile(File file) { + this.file = file; + } + @Override public void initialize(AppStateManager stateManager, Application app) { super.initialize(stateManager, app); @@ -103,6 +112,7 @@ public class VideoRecorderAppState extends AbstractAppState { } public void cleanup() { + app.setTimer(new NanoTimer()); try { writer.finishAVI(); } catch (Exception ex) {