Use the correct camera property.

Looks like FieldOfViewX/FieldOfViewY are only well-defined when
aperture mode is eHorizAndVert. Use FieldOfView instead.

Fixes #209.
This commit is contained in:
Pär Winzell 2019-08-06 17:46:59 -07:00
parent 31e3665862
commit 24092a80bb
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}