Amend T47425 fix, use scene setting

There are times when the preview background is important.
This commit is contained in:
Campbell Barton
2016-02-16 22:29:54 +11:00
parent c5e1781944
commit 03cfc2bf6a

View File

@@ -3236,6 +3236,7 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context, Sequence *seq
char err_out[256] = "unknown";
int width = (scene->r.xsch * scene->r.size) / 100;
int height = (scene->r.ysch * scene->r.size) / 100;
const bool use_background = (scene->r.alphamode == R_ADDSKY);
const char *viewname = BKE_scene_multiview_render_view_name_get(&scene->r, context->view_id);
/* for old scene this can be uninitialized,
@@ -3250,7 +3251,7 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context, Sequence *seq
scene, camera, width, height, IB_rect,
context->scene->r.seq_prev_type,
(context->scene->r.seq_flag & R_SEQ_SOLID_TEX) != 0,
use_gpencil, false, scene->r.alphamode,
use_gpencil, use_background, scene->r.alphamode,
context->gpu_samples, context->gpu_full_samples, viewname,
context->gpu_fx, context->gpu_offscreen, err_out);
if (ibuf == NULL) {