]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/cameracontroller.cpp
Angle must be divided by the correct type
[r2c2.git] / source / designer / cameracontroller.cpp
index 0679cbe2f165934f93824929c6268640100690aa..d4f828c134c16ceb3a34e6b420fc0f0c99692331 100644 (file)
@@ -191,6 +191,6 @@ float CameraController::get_distance() const
 
 float CameraController::get_view_scale() const
 {
-       float t = tan(camera.get_field_of_view()/2)*2;
+       float t = tan(camera.get_field_of_view()/2.0f)*2.0f;
        return get_distance()*t;
 }