Merged changes in the trunk up to revision 35203.
[blender.git] / source / creator / creator.c
index f64deb7414a6a1df4fb44b3c2547712fa8136cb1..5f639b7ed7c2d0e687d61f5787514e2e416e9a9e 100644 (file)
 #include "GPU_draw.h"
 #include "GPU_extensions.h"
 
+#include "FRS_freestyle.h"
+
 #ifdef WITH_BUILDINFO_HEADER
 #define BUILD_DATE
 #endif
@@ -1217,7 +1219,7 @@ int main(int argc, const char **argv)
        /* for all platforms, even windos has it! */
        if(G.background) signal(SIGINT, blender_esc);   /* ctrl c out bg render */
 #endif
-
+       
        /* background render uses this font too */
        BKE_font_register_builtin(datatoc_Bfont, datatoc_Bfont_size);
 
@@ -1265,6 +1267,10 @@ int main(int argc, const char **argv)
        CTX_py_init_set(C, 1);
        WM_keymap_init(C);
 
+       /* initialize Freestyle */
+       FRS_initialize();
+       FRS_set_context(C);
+
        /* OK we are ready for it */
        BLI_argsParse(ba, 4, load_file, C);