mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-02 17:55:52 +00:00
Fix FRME cook crash when path contains spaces
This commit is contained in:
parent
1eab4f945c
commit
d505f2d30a
@ -1353,7 +1353,7 @@ void BlenderConnection::DataStream::compileGuiFrame(const std::string& pathOut,
|
|||||||
m_parent->m_loadedBlend.getAbsolutePath().c_str());
|
m_parent->m_loadedBlend.getAbsolutePath().c_str());
|
||||||
|
|
||||||
char req[512];
|
char req[512];
|
||||||
snprintf(req, 512, "FRAMECOMPILE %s %d", pathOut.c_str(), version);
|
snprintf(req, 512, "FRAMECOMPILE '%s' %d", pathOut.c_str(), version);
|
||||||
m_parent->_writeStr(req);
|
m_parent->_writeStr(req);
|
||||||
|
|
||||||
char readBuf[1024];
|
char readBuf[1024];
|
||||||
@ -1377,7 +1377,7 @@ void BlenderConnection::DataStream::compileGuiFrame(const std::string& pathOut,
|
|||||||
relative = proj.getProjectRootPath().getProjectRelativeFromAbsolute(absolute);
|
relative = proj.getProjectRootPath().getProjectRelativeFromAbsolute(absolute);
|
||||||
hecl::ProjectPath path(proj.getProjectWorkingPath(), relative);
|
hecl::ProjectPath path(proj.getProjectWorkingPath(), relative);
|
||||||
|
|
||||||
snprintf(req, 512, "%016llX", path.hash().val64());
|
snprintf(req, 512, "%016" PRIX64 , path.hash().val64());
|
||||||
m_parent->_writeStr(req);
|
m_parent->_writeStr(req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user