- 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
3.0
nor..67 13 years ago
parent 3b6051b65c
commit 791c33aaa2
  1. 5
      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();
}

Loading…
Cancel
Save