tornavis/source/blender/render
Omar Emara 0c91ad9008 Fix #120175: File Output node has wrong BW output
The File Output node produces wrong output when the output is set to BW.
This is because the image saving logic assumes float buffers always have
4 channels and ignores the image buffer channels member. So for single
channel images, the code weighted sum neighbouring pixels and asigned
them as a single pixel, producing bleeding at best and crashes at worst.

To fix this, we skip Color to BW conversion if the image is already BW.
And, we fix the functions that assume 4 channels for float buffers.

Pull Request: https://projects.blender.org/blender/blender/pulls/120206
2024-04-04 08:51:57 +02:00
..
hydra Refactor: Remove unnecessary C wrapper for GPUBatch class 2024-03-26 03:06:25 +01:00
intern Fix #120175: File Output node has wrong BW output 2024-04-04 08:51:57 +02:00
CMakeLists.txt Revert changes from main commits that were merged into blender-v4.1-release 2024-02-19 15:59:59 +01:00
RE_bake.h Revert changes from main commits that were merged into blender-v4.1-release 2024-02-19 15:59:59 +01:00
RE_compositor.hh Compositor: Refactor File Output node 2023-12-13 11:08:03 +01:00
RE_engine.h EEVEE-Next: Move out of experimental options 2023-10-11 20:38:28 +02:00
RE_multires_bake.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
RE_pipeline.h Cleanup: spelling in comments 2024-02-28 12:13:20 +11:00
RE_texture.h Cleanup: use usernames in code-comments 2024-01-14 11:50:02 +11:00
RE_texture_margin.h Cleanup: Add a copyright notice to files and use SPDX format 2023-05-31 16:19:06 +02:00