feat: explicit conversion to string
This commit is contained in:
@ -215,7 +215,7 @@ Object Object::LoadFile(const std::string& filename) {
|
|||||||
iss >> mtlFile;
|
iss >> mtlFile;
|
||||||
std::filesystem::path fullPath = filename;
|
std::filesystem::path fullPath = filename;
|
||||||
std::filesystem::path mtlPath = fullPath.replace_filename(mtlFile);
|
std::filesystem::path mtlPath = fullPath.replace_filename(mtlFile);
|
||||||
obj.LoadMaterials(mtlPath);
|
obj.LoadMaterials(mtlPath.u8string());
|
||||||
std::cout << "loaded mtl at '" << mtlPath << "' with "
|
std::cout << "loaded mtl at '" << mtlPath << "' with "
|
||||||
<< obj.m_materials.size() << " materials" << std::endl;
|
<< obj.m_materials.size() << " materials" << std::endl;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user