From b81ac2be61812ca00c955de545deaef352234c4f Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 18 Feb 2013 14:54:04 +0000 Subject: [PATCH] Fixed mesh.xml material loading where model key was set as the material key preventing further loading when this file was saved as a j3o git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10413 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java index 686c66bcc..ac233c78d 100644 --- a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java +++ b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java @@ -232,8 +232,8 @@ public class MeshLoader extends DefaultHandler implements AssetLoader { if (mat == null) { logger.log(Level.WARNING, "Cannot locate {0} for model {1}", new Object[]{matName, key}); - mat = PlaceholderAssets.getPlaceholderMaterial(assetManager); - mat.setKey(key); + mat = PlaceholderAssets.getPlaceholderMaterial(assetManager); + mat.setKey(new MaterialKey(matName)); } if (mat.isTransparent()) {