diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-30 13:53:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-30 13:53:40 +0400 |
commit | 7f3b7c07afb51e9cc6acd1f34c72a0eee205b4be (patch) | |
tree | 3b1cf8f2b9c2679be7e6837612f7358a94605648 /source | |
parent | 6adc681227bb40535fc2e42d43ac43bcdb74b379 (diff) |
bugfix [#22702] Camera lense animation not updating
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 582b5926509..c3034768a4e 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -4959,6 +4959,11 @@ void RE_Database_FromScene(Render *re, Scene *scene, unsigned int lay, int use_c /* if no camera, viewmat should have been set! */ if(use_camera_view && re->scene->camera) { + /* called before but need to call again incase of lens animation from the + * above call to scene_update_for_newframe, fixes bug. [#22702]. + * following calls dont depend on 'RE_SetCamera' */ + RE_SetCamera(re, scene->camera); + normalize_m4(re->scene->camera->obmat); invert_m4_m4(mat, re->scene->camera->obmat); RE_SetView(re, mat); |