diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-16 03:40:53 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-16 03:51:14 +0300 |
commit | 3a8c57cf9dd46087ebb9cb3aa8ef195153405d41 (patch) | |
tree | 8a05949d86cfc3f3707dc0b5be435d9f4eb7157c | |
parent | 9d9c05a10106ea08cf5082633a5dd0a007d860ba (diff) |
Support Ctrl-C to cancel rendering with headless builds
The original intention from [0] was to force background-mode when built
WITH_HEADLESS or WITH_PYTHON_MODULE, with the else clause setting the
signal handler for Ctrl-C. Since WITH_PYTHON_MODULE now disables all
signal handlers this check no longer makes sense.
[0]: 9d9c05a10106ea08cf5082633a5dd0a007d860ba
-rw-r--r-- | source/creator/creator_signals.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/creator/creator_signals.c b/source/creator/creator_signals.c index 76423d7ba43..226277da363 100644 --- a/source/creator/creator_signals.c +++ b/source/creator/creator_signals.c @@ -244,11 +244,9 @@ void main_signal_setup_background(void) /* for all platforms, even windows has it! */ BLI_assert(G.background); -# if !defined(WITH_HEADLESS) /* Support pressing `Ctrl-C` to close Blender in background-mode. * Useful to be able to cancel a render operation. */ signal(SIGINT, sig_handle_blender_esc); -# endif } void main_signal_setup_fpe(void) |