From 791c33aaa20a7cf1c811da4cba47440d1f8da1a8 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 21 Nov 2011 04:41:51 +0000 Subject: [PATCH] - another fix in nifty resource locator, better but not good.. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8746 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java index 6c72d5094..e33201c89 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java @@ -73,6 +73,8 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement } } + private ResourceLocation resourceLocation = new ResourceLocationJmp(); + public NiftyJmeDisplay(AssetManager assetManager, InputSystem inputManager, AudioRenderer audioRenderer, @@ -90,8 +92,6 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement @Override public void initialize(RenderManager rm, ViewPort vp) { - ResourceLocationJmp resourceLocation = new ResourceLocationJmp(); - ResourceLoader.removeAllResourceLocations(); ResourceLoader.addResourceLocation(resourceLocation); this.renderManager = rm; renderDev.setRenderManager(rm); @@ -160,6 +160,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement @Override public void cleanup() { + ResourceLoader.removeResourceLocation(resourceLocation); inited = false; // nifty.exit(); }