Merged changes in the trunk up to revision 42902.
[blender.git] / source / creator / creator.c
index e15950a665c0f539362b5e5bc1789bbe67ea85ca..70624a692bf576d968e2aa7bbcceca2bd1f61072 100644 (file)
@@ -98,6 +98,8 @@
 #include "GPU_draw.h"
 #include "GPU_extensions.h"
 
+#include "FRS_freestyle.h"
+
 #ifdef WITH_BUILDINFO_HEADER
 #define BUILD_DATE
 #endif
@@ -1183,7 +1185,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);
 
@@ -1233,6 +1235,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);