mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
adapt scene preview to pixelratio
This commit is contained in:
parent
45c72d26d6
commit
9f41a75ad6
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ def setupCamera(intrinsic, pose):
|
|||
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])
|
||||
|
||||
camData.sensor_width = float(intrinsic['sensorWidth'])
|
||||
camData.lens = float(intrinsic['focalLength'])
|
||||
camData.lens = float(intrinsic['focalLength']) / float(intrinsic['pixelRatio'])
|
||||
|
||||
#shift is normalized with the largest resolution
|
||||
fwidth = float(intrinsic['width'])
|
||||
|
|
Loading…
Add table
Reference in a new issue