Przeglądaj źródła

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

Le Juez Victor 2 lat temu
rodzic
commit
753c0b3853
1 zmienionych plików z 1 dodań i 1 usunięć
  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];
 	fileDataPtr += 4;
 
-	if (version != 150)
+	if (version != 150 && version != 200)
 	{
 		return VOX_ERROR_FILE_VERSION_NOT_MATCH; //"MagicaVoxel version doesn't match"
 	}