[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14316] trunk/blender/source/blender/imbuf /intern/cineon/cineon_dpx.c: dpx saving would fail if there was no float buffer, which is a problem when rendering from the sequencer because a float buffer can be generated for some frames but not others depending on their contents .

Campbell Barton ideasman42 at gmail.com
Wed Apr 2 14:56:23 CEST 2008


Revision: 14316
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14316
Author:   campbellbarton
Date:     2008-04-02 14:56:23 +0200 (Wed, 02 Apr 2008)

Log Message:
-----------
dpx saving would fail if there was no float buffer, which is a problem when rendering from the sequencer because a float buffer can be generated for some frames but not others depending on their contents. 

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/intern/cineon/cineon_dpx.c

Modified: trunk/blender/source/blender/imbuf/intern/cineon/cineon_dpx.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/cineon/cineon_dpx.c	2008-04-02 12:03:31 UTC (rev 14315)
+++ trunk/blender/source/blender/imbuf/intern/cineon/cineon_dpx.c	2008-04-02 12:56:23 UTC (rev 14316)
@@ -135,8 +135,14 @@
 	height = buf->y;
 	depth = 3;
 	
-	if (!buf->rect_float) return 0;
 	
+	if (!buf->rect_float) {
+		IMB_float_from_rect(buf);
+		if (!buf->rect_float) { /* in the unlikely event that converting to a float buffer fails */
+			return 0;
+		}
+	}
+	
 	logImageSetVerbose(0);
 	logImage = logImageCreate(filename, use_cineon, width, height, depth);
 





More information about the Bf-blender-cvs mailing list