[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50993] trunk/blender/source/blender/ compositor/operations/COM_OutputFileOperation.cpp: Fix #32728: File Output node always save as RGBA, even when RGB is selected

Sergey Sharybin sergey.vfx at gmail.com
Mon Oct 1 19:38:22 CEST 2012


Revision: 50993
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50993
Author:   nazgul
Date:     2012-10-01 17:38:22 +0000 (Mon, 01 Oct 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/operations/COM_OutputFileOperation.cpp

Modified: trunk/blender/source/blender/compositor/operations/COM_OutputFileOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_OutputFileOperation.cpp	2012-10-01 17:09:12 UTC (rev 50992)
+++ trunk/blender/source/blender/compositor/operations/COM_OutputFileOperation.cpp	2012-10-01 17:38:22 UTC (rev 50993)
@@ -129,7 +129,7 @@
 	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];
 		




More information about the Bf-blender-cvs mailing list