Camera Tracking: fixed camera solve operator not updating scene camera

Was own regression caused by fix of crash when non-camera object is used
as scene camera.
This commit is contained in:
Sergey Sharybin 2012-11-27 15:10:22 +00:00
parent c9d84ab5ed
commit eda56398af

@ -1409,7 +1409,7 @@ static void solve_camera_freejob(void *scv)
id_us_plus(&clip->id);
/* set blender camera focal length so result would look fine there */
if (scene->camera && GS(scene->camera->id.name) == ID_CA) {
if (scene->camera && scene->camera->data && GS(((ID *) scene->camera->data)->name) == ID_CA) {
Camera *camera = (Camera *)scene->camera->data;
int width, height;