SDK :
- fixed materialPropertyEditor that was failing when changing material and aplying it to the geom git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7933 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
67cf4458c7
commit
9b46654963
@ -138,7 +138,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 AssetKey(text));
|
||||||
Material localMaterial = (Material) request.getManager().loadAsset(text);
|
Material localMaterial = (Material) request.getManager().loadMaterial(text);
|
||||||
if (localMaterial != null) {
|
if (localMaterial != null) {
|
||||||
material = localMaterial;
|
material = localMaterial;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user