Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-10-25 16:02:52 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-10-25 16:16:08 +0300
commit6b739bc2dcd5f4c6a84c72508608a63cfcc89dca (patch)
tree040632f167947691a3041aae38a7582534489a11 /source/blender/blenkernel/intern/sequencer.c
parent43533076073dcbac04f1b59fb2b4a519a2755aee (diff)
Fix T53156: VSE not working since Workspace > engine change
This would break if using preview in VSE. We now use the scene engine not the workspace engine. That said we could have the preview engine defined as part of the sequence strip as we had for draw modes in the past. But this is a separated topic for a separated patch. This issue in particular was introduced in e4f2b2be26ad. Note: VSE preview is still broken in two cases: * If you have Eevee as the engine in the Scene of the Scene strip. * If you use Clay, save the file, and re-open.
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index c6b6f97b0bc..53b32bd7df8 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -90,6 +90,8 @@
#include "BKE_context.h"
#include "BKE_sound.h"
+#include "RE_engine.h"
+
#ifdef WITH_AUDASPACE
# include <AUD_Special.h>
#endif
@@ -3308,6 +3310,7 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context, Sequence *seq
context->scene->r.seq_prev_type = 3 /* == OB_SOLID */;
/* opengl offscreen render */
+ context->eval_ctx->engine = RE_engines_find(scene->view_render.engine_id);
BKE_scene_update_for_newframe(context->eval_ctx, context->bmain, scene);
ibuf = sequencer_view3d_cb(
/* set for OpenGL render (NULL when scrubbing) */