fixed md2 loading, fixed typo
This commit is contained in:
@@ -39,7 +39,7 @@ void DffLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
|
|||||||
PRINT_LOG("Loading dff file");
|
PRINT_LOG("Loading dff file");
|
||||||
FILE *file = fopen(t_filename, "rb");
|
FILE *file = fopen(t_filename, "rb");
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
PRINT_ERR("Failed to load .obj file!");
|
PRINT_ERR("Failed to load .dff file!");
|
||||||
fseek(file, 0L, SEEK_END);
|
fseek(file, 0L, SEEK_END);
|
||||||
long fileSize = ftell(file);
|
long fileSize = ftell(file);
|
||||||
u8 data[fileSize];
|
u8 data[fileSize];
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ MeshFrame *MD2Loader::load(u32 &o_framesCount, char *t_subpath, char *t_nameWith
|
|||||||
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
||||||
MeshFrame *resultFrames = new MeshFrame[26];
|
MeshFrame *resultFrames = new MeshFrame[framesCount];
|
||||||
|
|
||||||
frame_t *frame;
|
frame_t *frame;
|
||||||
Vector3 tempVec = Vector3();
|
Vector3 tempVec = Vector3();
|
||||||
|
|||||||
Reference in New Issue
Block a user