From 4668621c9553190cd9a5b74f054aeff464dfe8c5 Mon Sep 17 00:00:00 2001 From: Nehon Date: Mon, 26 Jan 2015 18:35:42 +0100 Subject: [PATCH] the MaterialPreviewRenderer now properly clears the cache before rendering a preview --- .../src/com/jme3/gde/materials/MaterialPreviewRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPreviewRenderer.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPreviewRenderer.java index aa59e0048..11f4b7b1c 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPreviewRenderer.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPreviewRenderer.java @@ -126,8 +126,8 @@ public class MaterialPreviewRenderer implements SceneListener { public Material reloadMaterial(Material mat, DesktopAssetManager assetManager) { -// MaterialKey key = new MaterialKey(mat.getMaterialDef().getAssetName()); -// assetManager.deleteFromCache(key); + MaterialKey key = new MaterialKey(mat.getMaterialDef().getAssetName()); + assetManager.deleteFromCache(key); //creating a dummy mat with the mat def of the mat to reload Material dummy = new Material(mat.getMaterialDef());