fixed floors sample
This commit is contained in:
@@ -47,7 +47,7 @@ void DffLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
|
||||
fread(&data, sizeof(u8), fileSize, file);
|
||||
fclose(file);
|
||||
serialize(o_result, t_invertT, data, t_scale);
|
||||
o_result->calculateBoundingBox();
|
||||
o_result->calculateBoundingBoxes();
|
||||
PRINT_LOG("Dff file loaded!");
|
||||
}
|
||||
|
||||
|
||||
@@ -147,6 +147,6 @@ MeshFrame *MD2Loader::load(u32 &o_framesCount, char *t_subpath, char *t_nameWith
|
||||
delete[] finalPath;
|
||||
o_framesCount = framesCount;
|
||||
for (u32 i = 0; i < framesCount; i++)
|
||||
resultFrames[i].calculateBoundingBox();
|
||||
resultFrames[i].calculateBoundingBoxes();
|
||||
return resultFrames;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ void ObjLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
|
||||
else
|
||||
break;
|
||||
}
|
||||
o_result->calculateBoundingBox();
|
||||
o_result->calculateBoundingBoxes();
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user