merged changes to revision 24446
[blender.git] / source / blender / editors / screen / screen_ops.c
index 5cc2039393a78983d887930c5b0afff977958328..b7a8102c5e36dd4c5eeb8548f3e1737b398fcfd9 100644 (file)
@@ -2677,6 +2677,9 @@ static int screen_render_exec(bContext *C, wmOperator *op)
        }
        RE_test_break_cb(re, NULL, (int (*)(void *)) blender_test_break);
        
+       /* inform Freestyle of the context */
+       FRS_set_context(C);
+
        if(RNA_boolean_get(op->ptr, "animation"))
                RE_BlenderAnim(re, scene, scene->r.sfra, scene->r.efra, scene->r.frame_step);
        else
@@ -2951,6 +2954,9 @@ static int screen_render_invoke(bContext *C, wmOperator *op, wmEvent *event)
        /* handle UI stuff */
        WM_cursor_wait(1);
 
+       /* inform Freestyle of the context */
+       FRS_set_context(C);
+
        /* flush multires changes (for sculpt) */
        multires_force_update(CTX_data_active_object(C));