Fix T46493: Wrong camera zoom blur with non-unit pixel aspect
This commit is contained in:
parent
fa3dd5d9f4
commit
2746bbe30e
Notes:
blender-bot
2023-02-14 09:24:53 +01:00
Referenced by issue #46590, Strange camera behavior Referenced by issue #46510, Failed to get Full Preview in VSE Referenced by issue #46493, Cycles Motion Blur error - zoom effect Referenced by issue #46496, OpenGL Render fails on Intel-4600, with Anti-aliasing
|
@ -506,6 +506,11 @@ void BlenderSync::sync_camera_motion(BL::RenderSettings b_render,
|
|||
BlenderCamera bcam;
|
||||
float aspectratio, sensor_size;
|
||||
blender_camera_init(&bcam, b_render);
|
||||
|
||||
/* TODO(sergey): Consider making it a part of blender_camera_init(). */
|
||||
bcam.pixelaspect.x = b_render.pixel_aspect_x();
|
||||
bcam.pixelaspect.y = b_render.pixel_aspect_y();
|
||||
|
||||
blender_camera_from_object(&bcam, b_engine, b_ob);
|
||||
blender_camera_viewplane(&bcam,
|
||||
width, height,
|
||||
|
|
Loading…
Reference in New Issue