forked from bartvdbraak/blender
Fix #32728: File Output node always save as RGBA, even when RGB is selected
Seems to be a regression in new compositor system -- wrong number of planes was using for image buffer allocation.
This commit is contained in:
parent
02fc3eb56c
commit
20ca67bc35
@ -129,7 +129,7 @@ void OutputSingleLayerOperation::deinitExecution()
|
||||
if (this->getWidth() * this->getHeight() != 0) {
|
||||
|
||||
int size = get_datatype_size(this->m_datatype);
|
||||
ImBuf *ibuf = IMB_allocImBuf(this->getWidth(), this->getHeight(), size * 8, 0);
|
||||
ImBuf *ibuf = IMB_allocImBuf(this->getWidth(), this->getHeight(), this->m_format->planes, 0);
|
||||
Main *bmain = G.main; /* TODO, have this passed along */
|
||||
char filename[FILE_MAX];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user