From ab5541f08d42785dcd825d8f0176836753704c74 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Fri, 26 Aug 2011 01:49:58 +0000 Subject: [PATCH] SDK: - clear cache when opening nifty files to reload images git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8106 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 4c6a40795..586c85e3a 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 @@ -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();