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
1 changed files with 2 additions and 0 deletions

View File

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