From 24092a80bb0b6ac79e1fa52badb3b1a66300d39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Winzell?= Date: Tue, 6 Aug 2019 17:46:59 -0700 Subject: [PATCH] Use the correct camera property. Looks like FieldOfViewX/FieldOfViewY are only well-defined when aperture mode is eHorizAndVert. Use FieldOfView instead. Fixes #209. --- src/fbx/Fbx2Raw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fbx/Fbx2Raw.cpp b/src/fbx/Fbx2Raw.cpp index 325b7e0..351bd85 100644 --- a/src/fbx/Fbx2Raw.cpp +++ b/src/fbx/Fbx2Raw.cpp @@ -536,12 +536,12 @@ static void ReadCamera(RawModel& raw, FbxScene* pScene, FbxNode* pNode) { break; } case FbxCamera::EApertureMode::eHorizontal: { - fovx = pCamera->FieldOfViewX; + fovx = pCamera->FieldOfView; fovy = HFOV2VFOV(fovx, apertureRatio); break; } case FbxCamera::EApertureMode::eVertical: { - fovy = pCamera->FieldOfViewY; + fovy = pCamera->FieldOfView; fovx = VFOV2HFOV(fovy, 1.0 / apertureRatio); break; }