From 6af016d149edc3e58d5586be47c03594a96314aa Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sun, 7 Oct 2018 15:34:44 +0200 Subject: [PATCH] Fix Blender FOV loading --- code/BlenderLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlenderLoader.cpp b/code/BlenderLoader.cpp index d24fad180..b0d273a5f 100644 --- a/code/BlenderLoader.cpp +++ b/code/BlenderLoader.cpp @@ -1206,7 +1206,7 @@ aiCamera* BlenderImporter::ConvertCamera(const Scene& /*in*/, const Object* obj, out->mUp = aiVector3D(0.f, 1.f, 0.f); out->mLookAt = aiVector3D(0.f, 0.f, -1.f); if (cam->sensor_x && cam->lens) { - out->mHorizontalFOV = std::atan2(cam->sensor_x, 2.f * cam->lens); + out->mHorizontalFOV = 2.f * std::atan2(cam->sensor_x, 2.f * cam->lens); } out->mClipPlaneNear = cam->clipsta; out->mClipPlaneFar = cam->clipend;