From 031daeb8418f2a519a9343018b296720e872d2b3 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 11 Aug 2016 11:10:57 -1000 Subject: [PATCH] Immediately delete (incomplete) docs from BlenderConnection::createBlend --- hecl/blender/BlenderConnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hecl/blender/BlenderConnection.cpp b/hecl/blender/BlenderConnection.cpp index 65849c175..6a94981a1 100644 --- a/hecl/blender/BlenderConnection.cpp +++ b/hecl/blender/BlenderConnection.cpp @@ -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;