Fix T55626, fix T55106: Cycles motion blur + persistent images bug.
[blender.git] / intern / cycles / blender / blender_camera.cpp
index 435afabc2bbf16c77d945981f32e938b52cc0c95..1b798bcb42c9fef2282bf3e4d3e2801af8ff2322 100644 (file)
@@ -457,6 +457,7 @@ static void blender_camera_sync(Camera *cam,
        cam->matrix = blender_camera_matrix(bcam->matrix,
                                            bcam->type,
                                            bcam->panorama_type);
+       cam->motion.clear();
        cam->motion.resize(bcam->motion_steps, cam->matrix);
        cam->use_perspective_motion = false;
        cam->shuttertime = bcam->shuttertime;