소스 검색

For some reason the J3MLoader never loads the material name. Not that it's really important, but since we have the name field... let's read it...

Nehon 9 년 전
부모
커밋
cb56fd88eb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java

+ 1 - 0
jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java

@@ -637,6 +637,7 @@ public class J3MLoader implements AssetLoader {
 
             material = new Material(def);
             material.setKey(key);
+            material.setName(split[0].trim());
 //            material.setAssetName(fileName);
         }else if (split.length == 1){
             if (extending){