diff options
Diffstat (limited to 'src/import.cc')
-rw-r--r-- | src/import.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import.cc b/src/import.cc index c55c983..435d06d 100644 --- a/src/import.cc +++ b/src/import.cc @@ -81,7 +81,7 @@ AbstractNode *ImportModule::evaluate(const Context *ctx, const ModuleInstantiati std::string filename = c.getAbsolutePath(v.text); import_type_e actualtype = this->type; if (actualtype == TYPE_UNKNOWN) { - std::string ext = boost::algorithm::to_lower_copy(path(filename).extension().native()); + std::string ext = boost::algorithm::to_lower_copy(path(filename).extension().string()); if (ext == ".stl") actualtype = TYPE_STL; else if (ext == ".off") actualtype = TYPE_OFF; else if (ext == ".dxf") actualtype = TYPE_DXF; |