Smooth-view: Ignored camera-viewpoint on exit to user-view

This commit is contained in:
Campbell Barton 2015-08-26 15:13:19 +10:00
parent cc60f35a18
commit 1d34f0feed
1 changed files with 9 additions and 1 deletions

View File

@ -3815,8 +3815,16 @@ static void axis_set_view(bContext *C, View3D *v3d, ARegion *ar,
smooth_viewtx);
}
else {
float ofs[3], dist;
copy_v3_v3(ofs, rv3d->ofs);
dist = rv3d->dist;
/* so we animate _from_ the camera location */
ED_view3d_from_object(v3d->camera, rv3d->ofs, NULL, &rv3d->dist, NULL);
ED_view3d_smooth_view(C, v3d, ar, NULL, NULL,
NULL, quat, NULL, NULL,
ofs, quat, &dist, NULL,
smooth_viewtx);
}