fixed filename issue, (WARNING next bug may brick machine)
This commit is contained in:
parent
685aafd45f
commit
037233ddf2
1 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ void Model::loadModel(std::string path) {
|
||||||
error.crash("Assimp failed to load model data", import.GetErrorString());
|
error.crash("Assimp failed to load model data", import.GetErrorString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
directory = path.substr(0, path.find_last_of('/'));
|
directory = path.substr(0, path.find_last_of('/')) + '/';
|
||||||
|
error.log(directory);
|
||||||
processNode(scene->mRootNode, scene);
|
processNode(scene->mRootNode, scene);
|
||||||
}
|
}
|
||||||
void Model::processNode(aiNode *node, const aiScene *scene) {
|
void Model::processNode(aiNode *node, const aiScene *scene) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue