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
This commit is contained in:
parent
bc36506776
commit
b81ac2be61
@ -233,7 +233,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
|
|||||||
if (mat == null) {
|
if (mat == null) {
|
||||||
logger.log(Level.WARNING, "Cannot locate {0} for model {1}", new Object[]{matName, key});
|
logger.log(Level.WARNING, "Cannot locate {0} for model {1}", new Object[]{matName, key});
|
||||||
mat = PlaceholderAssets.getPlaceholderMaterial(assetManager);
|
mat = PlaceholderAssets.getPlaceholderMaterial(assetManager);
|
||||||
mat.setKey(key);
|
mat.setKey(new MaterialKey(matName));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mat.isTransparent()) {
|
if (mat.isTransparent()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user