浏览代码

Fix the last part of issue #90

shadowislord 10 年之前
父节点
当前提交
7a09fbbeb0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java

+ 1 - 0
jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java

@@ -152,6 +152,7 @@ public class MaterialLoader implements AssetLoader {
         } catch (AssetNotFoundException ex){
             logger.log(Level.WARNING, "Cannot locate {0} for material {1}", new Object[]{texKey, matName});
             textures[texUnit].setImage(PlaceholderAssets.getPlaceholderImage());
+            textures[texUnit].setKey(texKey);
         }
     }