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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2015-07-24 22:18:17 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2015-07-24 22:18:17 +0300
commit7c5c7b5ef6c3a77411b9e197152d5754943a034d (patch)
treeaf66895f49d48efcde3345da6d05ef6a0791decd
parent75f8f1907ae9f8526089f15941281e257135ecc8 (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.
-rw-r--r--intern/cycles/blender/blender_camera.cpp3
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);