- 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:
parent
3b6051b65c
commit
791c33aaa2
@ -73,6 +73,8 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private ResourceLocation resourceLocation = new ResourceLocationJmp();
|
||||||
|
|
||||||
public NiftyJmeDisplay(AssetManager assetManager,
|
public NiftyJmeDisplay(AssetManager assetManager,
|
||||||
InputSystem inputManager,
|
InputSystem inputManager,
|
||||||
AudioRenderer audioRenderer,
|
AudioRenderer audioRenderer,
|
||||||
@ -90,8 +92,6 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize(RenderManager rm, ViewPort vp) {
|
public void initialize(RenderManager rm, ViewPort vp) {
|
||||||
ResourceLocationJmp resourceLocation = new ResourceLocationJmp();
|
|
||||||
ResourceLoader.removeAllResourceLocations();
|
|
||||||
ResourceLoader.addResourceLocation(resourceLocation);
|
ResourceLoader.addResourceLocation(resourceLocation);
|
||||||
this.renderManager = rm;
|
this.renderManager = rm;
|
||||||
renderDev.setRenderManager(rm);
|
renderDev.setRenderManager(rm);
|
||||||
@ -160,6 +160,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
|
ResourceLoader.removeResourceLocation(resourceLocation);
|
||||||
inited = false;
|
inited = false;
|
||||||
// nifty.exit();
|
// nifty.exit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user