Send SIGINT once

This is enough (somehow) to abort rendering. With signal sent
twice Blender wil lsave crash report, which is not what we want.
This commit is contained in:
2018-08-07 10:10:48 +02:00
parent 23ca9b0759
commit 24c6749a83

View File

@@ -700,9 +700,6 @@ class BENCHMARK_OT_run(bpy.types.Operator):
self.progress_provider.process.kill()
else:
import signal
# Corresponds to usual greeting of blender to hit Ctrl-C
# again to abort rendering.
self.progress_provider.process.send_signal(signal.SIGINT)
self.progress_provider.process.send_signal(signal.SIGINT)
def cancel(self, context):