mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-30 02:39:17 -05:00
Addition of support for vox files in version 200. (#3097)
This commit is contained in:
2
src/external/vox_loader.h
vendored
2
src/external/vox_loader.h
vendored
@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user