Files
test/source/blender/blenkernel/intern
Omar Emara d4008562dd Fix #131552: Backdrop has a wrong size of 256x256
The compositor backdrop in certain files always have a size of 256x256
regardless of the actual size of the viewer image. That's because the
compositor writes its result to a different image buffer than the one
the image engine reads its image buffer from. And the image engine
assumes a default size of 256x256. The reason is a bit involved.

For non multi-view images, the image module uses the special cache index
value of IMA_NO_INDEX for the compositor backdrop, which works fine if
the image was detected as a non multi-view image in the first place.
However, this detection fails because the compositor may still write
multi-view images even for non multi-view renders.

In particular, before the compositor writes its viewer image, it ensures
correct views by calling BKE_image_ensure_viewer_views, which first
checks if we need to recreate the views of the viewer image if they
don't match the render views. And in the case of non multi-view image,
that check fails in one case.

Functions like BKE_image_is_multiview checks if a single unnamed view
exists in the image, unnamed being the keyword here. The root issue is
that BKE_image_ensure_viewer_views only checks that a single view
exists, while it should also check that it is unnamed. Which happens
when the user enabled multi-view, added only one view, then disabled
multi-view again.

To fix this, we add a check for the name of the view in case of non
multi-view images. And additionally pull the view matching code into its
own documented utility function for clarity.

Pull Request: https://projects.blender.org/blender/blender/pulls/132348
2024-12-27 12:09:41 +01:00
..
2024-12-17 21:04:55 +01:00
2024-12-17 21:04:55 +01:00
2024-10-15 16:22:38 +11:00
2024-11-02 17:34:00 +11:00
2024-10-01 09:59:33 +10:00
2024-09-21 16:22:52 +10:00
2024-09-10 13:41:01 +02:00
2024-12-17 21:04:55 +01:00
2024-12-17 21:04:55 +01:00
2024-08-22 17:05:48 +02:00
2024-08-04 13:45:06 +10:00