forked from bartvdbraak/blender
Followup for the previous commit
Need to do the same for render exec() because it doesn't use the job system.
This commit is contained in:
parent
cc0c94d535
commit
4f0e42489f
@ -35,6 +35,7 @@
|
||||
|
||||
#include "BLI_blenlib.h"
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_threads.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "PIL_time.h"
|
||||
@ -316,10 +317,12 @@ static int screen_render_exec(bContext *C, wmOperator *op)
|
||||
|
||||
RE_SetReports(re, op->reports);
|
||||
|
||||
BLI_begin_threaded_malloc();
|
||||
if (is_animation)
|
||||
RE_BlenderAnim(re, mainp, scene, camera_override, lay_override, scene->r.sfra, scene->r.efra, scene->r.frame_step);
|
||||
else
|
||||
RE_BlenderFrame(re, mainp, scene, srl, camera_override, lay_override, scene->r.cfra, is_write_still);
|
||||
BLI_end_threaded_malloc();
|
||||
|
||||
RE_SetReports(re, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user