diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-06 21:41:14 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-06 21:41:14 +0400 |
commit | 1e14e2f465c749b5fe39c1a22ea562059b9fad65 (patch) | |
tree | fb68f149643757ce1cc571220d8b5ae58cdf0d4b /source/blender/collada/CameraExporter.cpp | |
parent | eb6ac55e93527e12866f60cc8b8059b7705d6b5a (diff) |
camera lens (COLLADA xfov ) animation export
Diffstat (limited to 'source/blender/collada/CameraExporter.cpp')
-rw-r--r-- | source/blender/collada/CameraExporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/collada/CameraExporter.cpp b/source/blender/collada/CameraExporter.cpp index e3feab6b76c..c4d9a4a0df0 100644 --- a/source/blender/collada/CameraExporter.cpp +++ b/source/blender/collada/CameraExporter.cpp @@ -73,7 +73,7 @@ void CamerasExporter::operator()(Object *ob, Scene *sce) if (cam->type == CAM_PERSP) { COLLADASW::PerspectiveOptic persp(mSW); - persp.setXFov(lens_to_angle(cam->lens)*(180.0f/M_PI)); + persp.setXFov(lens_to_angle(cam->lens)*(180.0f/M_PI),"XFov"); persp.setAspectRatio((float)(sce->r.xsch)/(float)(sce->r.ysch),false,cam_name); persp.setZFar(cam->clipend); persp.setZNear(cam->clipsta); @@ -82,7 +82,7 @@ void CamerasExporter::operator()(Object *ob, Scene *sce) } else { COLLADASW::OrthographicOptic ortho(mSW); - ortho.setXMag(cam->ortho_scale); + ortho.setXMag(cam->ortho_scale,"XMag"); ortho.setAspectRatio((float)(sce->r.xsch)/(float)(sce->r.ysch)); ortho.setZFar(cam->clipend); ortho.setZNear(cam->clipsta); |