浏览代码

FbxReader: correct spelling "majic" -> "magic"

Stephen Gold 4 年之前
父节点
当前提交
c4e7a28320
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/file/FbxReader.java

+ 4 - 4
jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/file/FbxReader.java

@@ -45,7 +45,7 @@ public class FbxReader {
 	public static final int BLOCK_SENTINEL_LENGTH = 13;
 	public static final byte[] BLOCK_SENTINEL_DATA = new byte[BLOCK_SENTINEL_LENGTH];
 	/**
-	 * Majic string at start:
+	 * magic string at start:
 	 * "Kaydara FBX Binary\x20\x20\x00\x1a\x00"
 	 */
 	public static final byte[] HEAD_MAGIC = new byte[]{0x4b, 0x61, 0x79, 0x64, 0x61, 0x72, 0x61, 0x20, 0x46, 0x42, 0x58, 0x20, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x20, 0x20, 0x00, 0x1a, 0x00};
@@ -64,9 +64,9 @@ public class FbxReader {
 			stream.close();
 		} catch(IOException e) {
 		}
-		// Check majic header
-		byte[] majic = getBytes(byteBuffer, HEAD_MAGIC.length);
-		if(!Arrays.equals(HEAD_MAGIC, majic))
+		// Check magic header
+		byte[] magic = getBytes(byteBuffer, HEAD_MAGIC.length);
+		if(!Arrays.equals(HEAD_MAGIC, magic))
 			throw new IOException("Either ASCII FBX or corrupt file. "
                                             + "Only binary FBX files are supported");