Fix #34184: cycles speed vector pass should be zero when using motion blur,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 10 Feb 2013 18:02:59 +0000 (18:02 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 10 Feb 2013 18:02:59 +0000 (18:02 +0000)
instead it had value 10000.

intern/cycles/blender/blender_session.cpp

index 951f702..dfea983 100644 (file)
@@ -410,8 +410,10 @@ void BlenderSession::do_write_update_render_result(BL::RenderResult b_rr, BL::Re
                        int components = b_pass.channels();
 
                        /* copy pixels */
-                       if(buffers->get_pass_rect(pass_type, exposure, rtile.sample, components, &pixels[0]))
-                               b_pass.rect(&pixels[0]);
+                       if(!buffers->get_pass_rect(pass_type, exposure, rtile.sample, components, &pixels[0]))
+                               memset(&pixels[0], 0, pixels.size()*sizeof(float));
+
+                       b_pass.rect(&pixels[0]);
                }
        }