浏览代码

fixed regression #2

escherstair 6 年之前
父节点
当前提交
1abf6d50fe
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      code/Obj/ObjFileImporter.cpp

+ 4 - 1
code/Obj/ObjFileImporter.cpp

@@ -79,7 +79,10 @@ using namespace std;
 ObjFileImporter::ObjFileImporter()
 : m_Buffer()
 , m_pRootObject( nullptr )
-, m_strAbsPath( DefaultIOSystem().getOsSeparator() ) {}
+, m_strAbsPath( "" ) {
+    DefaultIOSystem io;
+    m_strAbsPath = io.getOsSeparator();
+}
 
 // ------------------------------------------------------------------------------------------------
 //  Destructor.