Bugfix for speed vector pass not being done when rendering a single
[blender-staging.git] / source / blender / render / intern / source / pipeline.c
index 07b7747ee83cc8cdd62833738c4cc6581fb0f6fd..177d7ec58e2bbe0fbdaa3d035fd0ce52ad12744c 100644 (file)
@@ -601,14 +601,13 @@ static RenderResult *new_render_result(Render *re, rcti *partrct, int crop, int
 
 static int render_scene_needs_vector(Render *re)
 {
-       if((re->r.scemode & R_DOCOMP) || re->r.imtype==R_MULTILAYER) {
-               SceneRenderLayer *srl;
+       SceneRenderLayer *srl;
        
-               for(srl= re->scene->r.layers.first; srl; srl= srl->next)
-                       if(!(srl->layflag & SCE_LAY_DISABLE))
-                               if(srl->passflag & SCE_PASS_VECTOR)
-                                       return 1;
-       }
+       for(srl= re->scene->r.layers.first; srl; srl= srl->next)
+               if(!(srl->layflag & SCE_LAY_DISABLE))
+                       if(srl->passflag & SCE_PASS_VECTOR)
+                               return 1;
+
        return 0;
 }
 
@@ -1919,9 +1918,6 @@ static void render_scene(Render *re, Scene *sce, int cfra)
        /* initial setup */
        RE_InitState(resc, re, &sce->r, winx, winy, &re->disprect);
        
-       /* this to enable this scene to create speed vectors */
-       resc->r.scemode |= R_DOCOMP;
-       
        /* still unsure entity this... */
        resc->scene= sce;