99674e36f147abcef69556f9615b89615ea2a860
Enabling render cropping while using the GPU compositor can cause the render to be distorted in certain resolution and border configurations. This is due to a difference in how the compositor and the render pipeline compute the effective bordered size of the render. While mathematically identical, difference in rounding can cause off by one errors in the computed size. The render pipeline computes the integer bounds of the border then computes the size from that, while the compositor multiplies the float size of the border to the full size of the render. To fix this, we adjust the BKE_render_resolution function to compute the border size using integer bounds like the render pipeline, which is the function used by the compositor. The cropped version of that function is used in two other places in the image editor for displaying render results, so we should expect no difference in outputs with minimal but more accurate difference in display. Pull Request: https://projects.blender.org/blender/blender/pulls/128576
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
