Skip to content

Commit

Permalink
[blender] preview: apply pixelRatio metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mugulmd committed Jun 23, 2023
1 parent 851099d commit 01b8731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meshroom/nodes/blender/scripts/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 01b8731

Please sign in to comment.