[#11706] Camera IPO Lag
authorMartin Poirier <theeth@yahoo.com>
Fri, 16 May 2008 10:20:30 +0000 (10:20 +0000)
committerMartin Poirier <theeth@yahoo.com>
Fri, 16 May 2008 10:20:30 +0000 (10:20 +0000)
Broken in revision 14473

Camera IPO needs a special exception to be done earlier than others, that was removed in that revision.

I added a better comment to make sure nobody removes it again, unless they really understand what's happening.

source/blender/render/intern/source/initrender.c

index ba971d2852499bd0ef0b13b33a445dc540bdc1a5..e9035f29b3ceaa6b18801a787338b57be1316b8c 100644 (file)
@@ -459,7 +459,14 @@ void RE_SetCamera(Render *re, Object *camera)
                
                if(cam->type==CAM_ORTHO) re->r.mode |= R_ORTHO;
                
-               /* updating these values from ipo's/drivers is handeled by the depgraph */
+               /* solve this too... all time depending stuff is in convertblender.c?
+                * Need to update the camera early because it's used for projection matrices
+                * and other stuff BEFORE the animation update loop is done 
+                * */
+               if(cam->ipo) {
+                       calc_ipo(cam->ipo, frame_to_float(re->r.cfra));
+                       execute_ipo(&cam->id, cam->ipo);
+               }
                lens= cam->lens;
                shiftx=cam->shiftx;
                shifty=cam->shifty;