Skip to content

Commit eafb75c

Browse files
committed
Preventing postFrameScript from running if we aborted early.
1 parent b8374c5 commit eafb75c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/IECoreHoudini/ROP_SceneCacheWriter.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ ROP_RENDER_CODE ROP_SceneCacheWriter::renderFrame( fpreal time, UT_Interrupt *bo
304304
}
305305

306306
ROP_RENDER_CODE status = doWrite( m_liveScene, outScene, writeTime, progress );
307-
executePostFrameScript( time );
307+
if ( status != ROP_ABORT_RENDER )
308+
{
309+
executePostFrameScript( time );
310+
}
311+
308312
progress->opEnd();
309313
return status;
310314
}

0 commit comments

Comments
 (0)