diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-30 01:04:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-30 01:34:33 +0400 |
commit | cdaff060265ef81539d04f6ad1f16762dbbba288 (patch) | |
tree | 744869b6ab49410fb3cb48b994052f363d03ebd1 | |
parent | 7e9a873a4425275b5b9d285107cbe61178477ef0 (diff) |
Fix T38905: view3d.object_as_camera didn't store the last-view
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index eff4ce498b9..7c8d5883bf6 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -569,7 +569,10 @@ static int view3d_setobjectascamera_exec(bContext *C, wmOperator *op) if (v3d->scenelock) scene->camera = ob; - if (camera_old != ob) { /* unlikely but looks like a glitch when set to the same */ + /* unlikely but looks like a glitch when set to the same */ + if (camera_old != ob) { + ED_view3d_lastview_store(rv3d); + ED_view3d_smooth_view(C, v3d, ar, camera_old, v3d->camera, rv3d->ofs, rv3d->viewquat, &rv3d->dist, &v3d->lens, smooth_viewtx); |