- clear cache when opening nifty files to reload images

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8106 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent cc30579289
commit ab5541f08d
  1. 4
      sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java

@ -33,6 +33,7 @@
package com.jme3.gde.gui.multiview;
import com.jme3.asset.AssetManager;
import com.jme3.asset.DesktopAssetManager;
import com.jme3.audio.AudioRenderer;
import com.jme3.niftygui.RenderDeviceJme;
import com.jme3.niftygui.SoundDeviceJme;
@ -53,7 +54,8 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
AudioRenderer audioRenderer,
ViewPort vp){
this.assetManager = assetManager;
//TODO: move
((DesktopAssetManager)assetManager).clearCache();
w = vp.getCamera().getWidth();
h = vp.getCamera().getHeight();

Loading…
Cancel
Save