Fix #34186: VSE: Incorrect movie output when scene strip is muted by keyframe
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 10 Feb 2013 09:27:25 +0000 (09:27 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 10 Feb 2013 09:27:25 +0000 (09:27 +0000)
source/blender/render/intern/source/render_result.c

index 35b0638..c779b01 100644 (file)
@@ -1094,6 +1094,10 @@ ImBuf *render_result_rect_to_ibuf(RenderResult *rr, RenderData *rd)
                if (BKE_imtype_valid_depths(rd->im_format.imtype) & (R_IMF_CHAN_DEPTH_12 | R_IMF_CHAN_DEPTH_16 | R_IMF_CHAN_DEPTH_24 | R_IMF_CHAN_DEPTH_32)) {
                        IMB_float_from_rect(ibuf);
                }
+               else  {
+                       /* ensure no float buffer remained from previous frame */
+                       ibuf->rect_float = NULL;
+               }
        }
 
        /* color -> grayscale */