VizFwk: Fixed scaling bug in paralell projection for FixedSizeTransform. Was always 1 pixel high

This commit is contained in:
Jacob Støren
2019-06-25 16:53:01 +02:00
parent b802937657
commit b0e73b7422

View File

@@ -86,7 +86,7 @@ void FixedSizeTransform::updateWorldTransform(const cvf::Camera* camera)
}
else
{
scaleFactor = camera->frontPlanePixelHeight();
scaleFactor = fixedPixelSizeModelUnits()*camera->frontPlanePixelHeight();
}
Mat4d scaleMatrix = Mat4d::fromScaling(Vec3d(scaleFactor, scaleFactor, scaleFactor));