Merged changes in the trunk up to revision 26439.
[blender.git] / source / blender / editors / screen / screen_ops.c
index 209535b1350d67052ef126637bb571ed98efc378..4394893ff69b11c6fa551770a1fbad70dedb8ba8 100644 (file)
@@ -2886,6 +2886,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, op->reports);
        else
@@ -3172,6 +3175,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));