summaryrefslogtreecommitdiffstats
path: root/tools/qgltf/qgltf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qgltf/qgltf.cpp')
-rw-r--r--tools/qgltf/qgltf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qgltf/qgltf.cpp b/tools/qgltf/qgltf.cpp
index 788f3cef5..bc011eaa7 100644
--- a/tools/qgltf/qgltf.cpp
+++ b/tools/qgltf/qgltf.cpp
@@ -1016,7 +1016,7 @@ void AssimpImporter::parseCameras()
c.aspectRatio = qFuzzyIsNull(cam->mAspect) ? 1.5f : cam->mAspect;
c.yfov = cam->mHorizontalFOV;
if (c.yfov < (M_PI / 10.0)) // this can't be right (probably orthographic source camera)
- c.yfov = M_PI / 4.0;
+ c.yfov = float(M_PI / 4.0);
c.znear = cam->mClipPlaneNear;
c.zfar = cam->mClipPlaneFar;