2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-01 23:33:33 +00:00

Immediately delete (incomplete) docs from BlenderConnection::createBlend

This commit is contained in:
Jack Andersen 2016-08-11 11:10:57 -10:00
parent 4917fb0b74
commit 031daeb841

View File

@ -458,6 +458,8 @@ bool BlenderConnection::createBlend(const ProjectPath& path, BlendType type)
_readLine(lineBuf, sizeof(lineBuf)); _readLine(lineBuf, sizeof(lineBuf));
if (!strcmp(lineBuf, "FINISHED")) if (!strcmp(lineBuf, "FINISHED"))
{ {
/* Delete immediately in case save doesn't occur */
hecl::Unlink(path.getAbsolutePath().c_str());
m_loadedBlend = path; m_loadedBlend = path;
m_loadedType = type; m_loadedType = type;
return true; return true;