Blender Git Loki

Git Commits -> Revision 8d1c0b6

Revision 8d1c0b6 by Lukas Toenne (master)
August 16, 2013, 13:11 (GMT)
Fix for #36468, "Buffer Groups" option changes compositing output.

Problem is that the read/write buffer operations only work with actual
image inputs. If a singular value is used as group input no actual
buffer will be created, the write operation does not schedule any chunks
and the ReadBufferOperation subsequently returns zero
(MemoryBuffer::read).

The fix uses the (0,0) resolution to detect single value input of the
WriteBufferOperation. The actual resolution is then clamped to (1,1) to
ensure we have a single pixel to store the value in. A m_single_value
flag is also set, so we can reliably distinguish this from genuine image
resolutions without having to check m_width/m_height later on.

The ReadBufferOperation copies this flag from the associated
WriteBufferOperation and if set will always return the single value from
pixel (0,0).

Commit Details:

Full Hash: 8d1c0b6f0f4012b379023b96b4c426b3432c018b
SVN Revision: 59188
Parent Commit: fd7bffa
Lines Changed: +34, -2

4 Modified Paths:

/source/blender/compositor/operations/COM_ReadBufferOperation.cpp (+15, -2) (Diff)
/source/blender/compositor/operations/COM_ReadBufferOperation.h (+1, -0) (Diff)
/source/blender/compositor/operations/COM_WriteBufferOperation.cpp (+15, -0) (Diff)
/source/blender/compositor/operations/COM_WriteBufferOperation.h (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021