mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
VizFwk: Fixed scaling bug in paralell projection for FixedSizeTransform. Was always 1 pixel high
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user