We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c72d2 commit 9f41a75Copy full SHA for 9f41a75
meshroom/nodes/blender/scripts/preview.py
@@ -102,7 +102,7 @@ def setupCamera(intrinsic, pose):
102
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])
103
104
camData.sensor_width = float(intrinsic['sensorWidth'])
105
- camData.lens = float(intrinsic['focalLength'])
+ camData.lens = float(intrinsic['focalLength']) / float(intrinsic['pixelRatio'])
106
107
#shift is normalized with the largest resolution
108
fwidth = float(intrinsic['width'])
0 commit comments