diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-05-16 14:20:30 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-05-16 14:20:30 +0400 |
commit | ff84d868a15896bcfd48a949388bc978e4a57ce4 (patch) | |
tree | 8ab0c1a3aa9506d01ac23d58b27e5082b2d122b6 /source | |
parent | 1e1ece8025975a07d33195c8271d217b87431adf (diff) |
[#11706] Camera IPO Lag
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/initrender.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/initrender.c b/source/blender/render/intern/source/initrender.c index ba971d28524..e9035f29b3c 100644 --- a/source/blender/render/intern/source/initrender.c +++ b/source/blender/render/intern/source/initrender.c @@ -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; |