Changed .obj to .mesh for all meshes.

This commit is contained in:
antc13
2016-01-24 16:12:31 +01:00
parent 666f1fd878
commit 96a735c542
22 changed files with 107 additions and 82 deletions
+3
View File
@@ -4,6 +4,9 @@
RawModelCustom::RawModelCustom(std::string fileName)
{
if(fileName.substr(fileName.find_last_of(".")).compare(".mesh") != 0) {
throw Resource::FailedLoadingException("Unknown model file format. Please use \".mesh\" files.");
}
fileName = fileName.erase(fileName.find_last_of("."), fileName.find_last_of(".") - fileName.size());
ReadMeshFile(fileName);
ReadMaterialFile(fileName);