aboutsummaryrefslogtreecommitdiff
path: root/src/obj_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/obj_parser.cpp')
-rw-r--r--src/obj_parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/obj_parser.cpp b/src/obj_parser.cpp
index 68abbff..7e79d56 100644
--- a/src/obj_parser.cpp
+++ b/src/obj_parser.cpp
@@ -8,6 +8,7 @@
#include <array>
#include <string_view>
#include <optional>
+#include <filesystem>
#include "math/vector.hpp"
#include "math/utils.hpp"
#include "o3d/mesh.hpp"
@@ -116,7 +117,7 @@ static std::optional<Ret> err_exit() {
exit(EXIT_FAILURE);
}
-o3d::Mesh parse_object(const std::string& obj_path) {
+o3d::Mesh parse_object(const std::filesystem::path& obj_path) {
o3d::Mesh mesh;
std::ifstream obj_file(obj_path);
if (!obj_file.is_open()) {