Windows fixes

This commit is contained in:
Jack Andersen 2017-03-19 20:59:14 -10:00
parent 53521a0eea
commit 87ae8aaa57
1 changed files with 4 additions and 2 deletions

View File

@ -1164,8 +1164,9 @@ BlenderConnection::DataStream::MapUniverse::World::World(BlenderConnection& conn
path.assign(pathLen, '\0'); path.assign(pathLen, '\0');
conn._readBuf(&path[0], pathLen); conn._readBuf(&path[0], pathLen);
hecl::SystemStringView sysPath(path);
SystemString pathRel = SystemString pathRel =
conn.m_loadedBlend.getProject().getProjectRootPath().getProjectRelativeFromAbsolute(path); conn.m_loadedBlend.getProject().getProjectRootPath().getProjectRelativeFromAbsolute(sysPath.sys_str());
worldPath.assign(conn.m_loadedBlend.getProject().getProjectWorkingPath(), pathRel); worldPath.assign(conn.m_loadedBlend.getProject().getProjectWorkingPath(), pathRel);
} }
} }
@ -1180,8 +1181,9 @@ BlenderConnection::DataStream::MapUniverse::MapUniverse(BlenderConnection& conn)
path.assign(pathLen, '\0'); path.assign(pathLen, '\0');
conn._readBuf(&path[0], pathLen); conn._readBuf(&path[0], pathLen);
hecl::SystemStringView sysPath(path);
SystemString pathRel = SystemString pathRel =
conn.m_loadedBlend.getProject().getProjectRootPath().getProjectRelativeFromAbsolute(path); conn.m_loadedBlend.getProject().getProjectRootPath().getProjectRelativeFromAbsolute(sysPath.sys_str());
hexagonPath.assign(conn.m_loadedBlend.getProject().getProjectWorkingPath(), pathRel); hexagonPath.assign(conn.m_loadedBlend.getProject().getProjectWorkingPath(), pathRel);
} }