소스 검색

Add default config for glb loader

Nehon 7 년 전
부모
커밋
0d8b86b66f
3개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      .gitignore
  2. 1 0
      jme3-core/src/main/resources/com/jme3/asset/General.cfg
  3. 0 4
      jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java

+ 1 - 0
.gitignore

@@ -2,6 +2,7 @@
 **/.classpath
 **/.settings
 **/.project
+**/out
 /.gradle/
 /.nb-gradle/
 /.idea/

+ 1 - 0
jme3-core/src/main/resources/com/jme3/asset/General.cfg

@@ -25,3 +25,4 @@ LOADER com.jme3.shader.plugins.GLSLLoader : vert, frag, geom, tsctrl, tseval, gl
 LOADER com.jme3.scene.plugins.fbx.FbxLoader : fbx
 LOADER com.jme3.scene.plugins.gltf.GltfLoader : gltf
 LOADER com.jme3.scene.plugins.gltf.BinLoader : bin
+LOADER com.jme3.scene.plugins.gltf.GlbLoader : glb

+ 0 - 4
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java

@@ -22,9 +22,6 @@ public class GlbLoader extends GltfLoader {
         int magic = stream.readInt();
         int version = stream.readInt();
         int length = stream.readInt();
-        System.err.println(magic == GLTF_MAGIC ? "gltf" : "no no no");
-        System.err.println(version);
-        System.err.println(length);
 
         byte[] json = null;
 
@@ -37,7 +34,6 @@ public class GlbLoader extends GltfLoader {
             if (chunkType == JSON_TYPE) {
                 json = new byte[chunkLength];
                 stream.read(json);
-                System.err.println(new String(json));
             } else {
                 byte[] bin = new byte[chunkLength];
                 stream.read(bin);