Fix T45537: cycles bake crashes with motionblur on

The crash was due to baking with motion blur but without a camera.

Reviewed by Brecht.
This commit is contained in:
Kévin Dietrich
2015-07-24 21:18:17 +02:00
parent 75f8f1907a
commit 7c5c7b5ef6

View File

@@ -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);