浏览代码

Addition of support for vox files in version 200. (#3097)

pull/3103/head
Le Juez Victor 2 年前
committed by GitHub
父节点
当前提交
753c0b3853
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/external/vox_loader.h

+ 1
- 1
src/external/vox_loader.h 查看文件

@ -555,7 +555,7 @@ int Vox_LoadFromMemory(unsigned char* pvoxData, unsigned int voxDataSize, VoxArr
version = ((unsigned int*)fileDataPtr)[0]; version = ((unsigned int*)fileDataPtr)[0];
fileDataPtr += 4; fileDataPtr += 4;
if (version != 150)
if (version != 150 && version != 200)
{ {
return VOX_ERROR_FILE_VERSION_NOT_MATCH; //"MagicaVoxel version doesn't match" return VOX_ERROR_FILE_VERSION_NOT_MATCH; //"MagicaVoxel version doesn't match"
} }

正在加载...
取消
保存