소스 검색

Read unsigned byte properly

Toni Helenius 2 년 전
부모
커밋
556b57c540
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfUtils.java

+ 2 - 2
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfUtils.java

@@ -389,8 +389,8 @@ public class GltfUtils {
                 b = stream.readByte();
                 return Math.max(b / 127f, -1f);
             case UnsignedByte:
-                b = stream.readByte();
-                return b / 255f;
+                s = stream.readUnsignedByte();
+                return s / 255f;
             case Short:
                 s = stream.readShort();
                 return Math.max(s / 32767f, -1f);