Skip to content

Commit 9f41a75

Browse files
author
Fabien Servant
committed
adapt scene preview to pixelratio
1 parent 45c72d2 commit 9f41a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/nodes/blender/scripts/preview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def setupCamera(intrinsic, pose):
102102
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])
103103

104104
camData.sensor_width = float(intrinsic['sensorWidth'])
105-
camData.lens = float(intrinsic['focalLength'])
105+
camData.lens = float(intrinsic['focalLength']) / float(intrinsic['pixelRatio'])
106106

107107
#shift is normalized with the largest resolution
108108
fwidth = float(intrinsic['width'])

0 commit comments

Comments
 (0)