- fix in MaterialPropertyEditor cache clear

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7935 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-07-28 14:48:06 +00:00
parent 2d2f0994e1
commit 90a0344b25

View File

@ -137,7 +137,7 @@ public class MaterialPropertyEditor implements PropertyEditor, SceneExplorerProp
public Void call() throws Exception { public Void call() throws Exception {
SceneRequest request = SceneApplication.getApplication().getCurrentSceneRequest(); SceneRequest request = SceneApplication.getApplication().getCurrentSceneRequest();
((DesktopAssetManager) request.getManager()).deleteFromCache(new AssetKey(text)); ((DesktopAssetManager) request.getManager()).deleteFromCache(new MaterialKey(text));
Material localMaterial = (Material) request.getManager().loadMaterial(text); Material localMaterial = (Material) request.getManager().loadMaterial(text);
if (localMaterial != null) { if (localMaterial != null) {
material = localMaterial; material = localMaterial;