diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2015-07-24 22:18:17 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2015-07-24 22:18:17 +0300 |
commit | 7c5c7b5ef6c3a77411b9e197152d5754943a034d (patch) | |
tree | af66895f49d48efcde3345da6d05ef6a0791decd /intern | |
parent | 75f8f1907ae9f8526089f15941281e257135ecc8 (diff) |
Fix T45537: cycles bake crashes with motionblur on
The crash was due to baking with motion blur but without a camera.
Reviewed by Brecht.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/blender/blender_camera.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_camera.cpp b/intern/cycles/blender/blender_camera.cpp index 18e9aa8bc17..0a79bfbf793 100644 --- a/intern/cycles/blender/blender_camera.cpp +++ b/intern/cycles/blender/blender_camera.cpp @@ -462,6 +462,9 @@ void BlenderSync::sync_camera_motion(BL::RenderSettings b_render, int width, int height, float motion_time) { + if(!b_ob) + return; + Camera *cam = scene->camera; BL::Array<float, 16> b_ob_matrix; b_engine.camera_model_matrix(b_ob, b_ob_matrix); |