make WITH_HEADLESS build again.

This commit is contained in:
Campbell Barton
2013-02-01 08:24:18 +00:00
parent 7dc33e3ef8
commit 2a71e4e4f0
4 changed files with 21 additions and 10 deletions

View File

@@ -1485,10 +1485,13 @@ int main(int argc, const char **argv)
#if defined(WITH_PYTHON_MODULE) || defined(WITH_HEADLESS)
G.background = 1; /* python module mode ALWAYS runs in background mode (for now) */
G.background = true; /* python module mode ALWAYS runs in background mode (for now) */
(void)blender_esc;
#else
/* for all platforms, even windos has it! */
if (G.background) signal(SIGINT, blender_esc); /* ctrl c out bg render */
if (G.background) {
signal(SIGINT, blender_esc); /* ctrl c out bg render */
}
#endif
/* background render uses this font too */