- 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
This commit is contained in:
nor..67 2011-11-21 04:41:51 +00:00
parent 3b6051b65c
commit 791c33aaa2

View File

@ -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();
}