mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-14 01:26:55 +02:00
[blender] preview: apply pixelRatio metadata
This commit is contained in:
parent
24fc217ec6
commit
b1063212ff
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ def setupCamera(intrinsic, pose):
|
|||
|
||||
bpy.context.scene.render.resolution_x = int(intrinsic['width'])
|
||||
bpy.context.scene.render.resolution_y = int(intrinsic['height'])
|
||||
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])
|
||||
|
||||
camData.sensor_width = float(intrinsic['sensorWidth'])
|
||||
camData.lens = float(intrinsic['focalLength'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue