CMake option 'WITH_HEADLESS' to build blender in headless mode (no x11/xlib) with...
[blender.git] / source / creator / creator.c
index 6e9ecf234fce2f53e9b97ea50df1d8d58ffddf3e..fe9bd57d035fd9ee5f0b067e27051a2caf614b8a 100644 (file)
@@ -1215,7 +1215,7 @@ int main(int argc, const char **argv)
        setuid(getuid()); /* end superuser */
 #endif
 
-#ifdef WITH_PYTHON_MODULE
+#if defined(WITH_PYTHON_MODULE) || defined(WITH_HEADLESS)
        G.background= 1; /* python module mode ALWAYS runs in background mode (for now) */
 #else
        /* for all platforms, even windos has it! */