Page MenuHome

Compositor: Fix calculation of preview resolution
ClosedPublic

Authored by Sergey Sharybin (sergey) on Jul 10 2020, 11:40 AM.

Details

Summary

Were two issues:

  • Divider was calculated in integer domain, causing rounding issues in general case, and causing singularity in a corner case when input is smaller than the preview size.
  • The resolution was scaled down by 1 pixel for no obvious reason.

Compositor: Fix node preview when input resolution is not known

The final render will use scene resolution in this case.

For example, when Color Input is plugger to preview and composite output
nodes, final render will flood-fill the final image which is a size of
scene resolution with this color. Before this fix the node preview was
empty. After this fix the node preview will be flood-filled with the
color.

Diff Detail

Repository
rB Blender
Branch
compositor_fix_preview (branched from master)
Build Status
Buildable 8948
Build 8948: arc lint + arc unit