summaryrefslogtreecommitdiff
path: root/tools/source/generic/b3dtrans.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/generic/b3dtrans.cxx')
-rw-r--r--tools/source/generic/b3dtrans.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx
index f2210705112a..184b6a1ff8bc 100644
--- a/tools/source/generic/b3dtrans.cxx
+++ b/tools/source/generic/b3dtrans.cxx
@@ -429,8 +429,7 @@ void B3dCamera::CalcNewViewportValues()
aNewVUV.normalize();
SetViewportValues(aPosition, aNewVPN, aNewVUV);
- if(CalcFocalLength())
- SetViewportValues(aCorrectedPosition, aNewVPN, aNewVUV);
+ CalcFocalLength();
if(fBankAngle != 0.0)
{
@@ -444,7 +443,7 @@ void B3dCamera::CalcNewViewportValues()
}
}
-bool B3dCamera::CalcFocalLength()
+void B3dCamera::CalcFocalLength()
{
double fWidth = GetDeviceRectangleWidth();
@@ -455,7 +454,6 @@ bool B3dCamera::CalcFocalLength()
fFocalLength = aOldPosition.getZ() / fWidth * 35.0;
if(fFocalLength < 5.0)
fFocalLength = 5.0;
- return false;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */