From 618bfceddbf7169805e81c807c5bef621bae2098 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Wed, 1 Oct 2025 09:12:23 +0200 Subject: [PATCH] feat: explicit conversion to string --- src/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.cpp b/src/model.cpp index 05b4ea3..50e5d3d 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -215,7 +215,7 @@ Object Object::LoadFile(const std::string& filename) { iss >> mtlFile; std::filesystem::path fullPath = filename; std::filesystem::path mtlPath = fullPath.replace_filename(mtlFile); - obj.LoadMaterials(mtlPath); + obj.LoadMaterials(mtlPath.u8string()); std::cout << "loaded mtl at '" << mtlPath << "' with " << obj.m_materials.size() << " materials" << std::endl; break;