Skip to content

Commit 1b78181

Browse files
committed
fix so field of view gets exported properly
1 parent d3ffcbe commit 1b78181

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,11 +791,14 @@ protected bool ExportCamera (GameObject unityGO, FbxScene fbxScene, FbxNode fbxN
791791
fbxCamera.FilmAspectRatio.Set(aspectRatio);
792792
fbxCamera.SetApertureWidth (apertureWidthInInches);
793793
fbxCamera.SetApertureHeight (apertureHeightInInches);
794-
fbxCamera.SetApertureMode (FbxCamera.EApertureMode.eFocalLength);
794+
fbxCamera.SetApertureMode (FbxCamera.EApertureMode.eVertical);
795795

796-
// FOV / Focal Length
796+
// Focal Length
797797
fbxCamera.FocalLength.Set(fbxCamera.ComputeFocalLength (unityCamera.fieldOfView));
798798

799+
// Field of View
800+
fbxCamera.FieldOfView.Set (unityCamera.fieldOfView);
801+
799802
// NearPlane
800803
fbxCamera.SetNearPlane (unityCamera.nearClipPlane*100);
801804

0 commit comments

Comments
 (0)