Camera trackign integration
[blender.git] / source / blender / collada / DocumentImporter.cpp
index 28bf9af8e17c83d5a06009f90f1d3d717afb3602..e0e292dd960c61aa2170d0a4f67d4d74a6355519 100644 (file)
@@ -834,7 +834,7 @@ bool DocumentImporter::writeCamera( const COLLADAFW::Camera* camera )
                                        {
                                        double yfov = camera->getYFov().getValue();
                                        // yfov is in degrees, cam->lens is in millimiters
-                                       cam->lens = hfov_to_focallength((float)x*(M_PI/180.0f), cam->sensor_x);
+                                       cam->lens = hfov_to_focallength((float)yfov*(M_PI/180.0f), cam->sensor_x);
                                        }
                                        break;
                        }