diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-02-21 15:31:52 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-02-21 18:33:29 +0300 |
commit | 6e53fdc18fa0a2003bd8c39d968fe379b5d1d082 (patch) | |
tree | 40b41d40e5cc797b07ada6c30705d7c94b953046 /intern/cycles/blender/blender_object.cpp | |
parent | 1d38a83139582ff37adc0757bd39d87d5932ddf5 (diff) |
Cycles OpenCL: Motion Blur Compile Directives
When using preview rendering through a camera or final rendering
the `scene.render.use_motion_blur` was not respected when building
the compile directives.
This patch will when building the compile directives check if
motion blur is enabled at all. This should lead to more efficient
kernels when no motion blur is needed.
Tags: #cycles
Differential Revision: https://developer.blender.org/D4387
Diffstat (limited to 'intern/cycles/blender/blender_object.cpp')
-rw-r--r-- | intern/cycles/blender/blender_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/blender_object.cpp b/intern/cycles/blender/blender_object.cpp index a05c982b367..62db5d705e0 100644 --- a/intern/cycles/blender/blender_object.cpp +++ b/intern/cycles/blender/blender_object.cpp @@ -419,7 +419,7 @@ Object *BlenderSync::sync_object(BL::Object& b_parent, uint motion_steps; - if(scene->need_motion() == Scene::MOTION_BLUR) { + if(need_motion == Scene::MOTION_BLUR) { motion_steps = object_motion_steps(b_parent, b_ob); mesh->motion_steps = motion_steps; if(motion_steps && object_use_deform_motion(b_parent, b_ob)) { |