OgreXML Loader: set jME3 material name based on ogre material name

This commit is contained in:
shadowislord 2015-02-15 17:01:12 -05:00
parent 6c770d524d
commit 4090b6f1de
2 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,7 @@ public class MaterialLoader implements AssetLoader {
}else{
mat = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
}
mat.setName(matName);
if (blend){
RenderState rs = mat.getAdditionalRenderState();
rs.setAlphaTest(true);

View File

@ -104,6 +104,7 @@ public class MaterialExtensionLoader {
}
material = new Material(assetManager, matExt.getJmeMatDefName());
material.setName(matName);
for (Statement extMatStat : statement.getContents()){
readExtendingMaterialStatement(extMatStat);
}