feat: explicit conversion to string

This commit is contained in:
2025-10-01 09:12:23 +02:00
parent 624186e4fb
commit 618bfceddb

View File

@ -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;