From 96e344d37104ecfa27453fe79e647f2a516261e8 Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Thu, 3 Apr 2008 16:14:06 -0300 Subject: [PATCH] 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. Author: Campbell Barton SVN revision: r14316 Date: 2008-04-02 09:56:23 -0300 (Wed, 02 Apr 2008) --- source/blender/imbuf/intern/cineon/cineon_dpx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/blender/imbuf/intern/cineon/cineon_dpx.c b/source/blender/imbuf/intern/cineon/cineon_dpx.c index 8db8e34..243581d 100644 --- a/source/blender/imbuf/intern/cineon/cineon_dpx.c +++ b/source/blender/imbuf/intern/cineon/cineon_dpx.c @@ -135,7 +135,13 @@ static int imb_save_dpx_cineon(ImBuf *buf, char *filename, int use_cineon, int f 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); -- 2.11.4.GIT