forked from bartvdbraak/blender
Fix [#23613] Align active camera to view vs toggle camera acts odd
Reported by Reiner Prokein After aligning active camera toggling between last view and camera worked wrong in such a way that the view previous to the one to which was aligned was rotated to. In some cases rotation to last view seemed incomplete and ortho was used. Thanks to M.G. Kishalmi (lmg) for showing through a Skype screen share. This is now fixed by copying the current view info before active camera is aligned.
This commit is contained in:
parent
4ddc61643a
commit
6e1e638313
@ -403,6 +403,10 @@ static int view3d_setcameratoview_exec(bContext *C, wmOperator *op)
|
|||||||
View3D *v3d = CTX_wm_view3d(C);
|
View3D *v3d = CTX_wm_view3d(C);
|
||||||
RegionView3D *rv3d= CTX_wm_region_view3d(C);
|
RegionView3D *rv3d= CTX_wm_region_view3d(C);
|
||||||
|
|
||||||
|
copy_qt_qt(rv3d->lviewquat, rv3d->viewquat);
|
||||||
|
rv3d->lview= rv3d->view;
|
||||||
|
rv3d->lpersp= rv3d->persp;
|
||||||
|
|
||||||
setcameratoview3d(v3d, rv3d, v3d->camera);
|
setcameratoview3d(v3d, rv3d, v3d->camera);
|
||||||
rv3d->persp = RV3D_CAMOB;
|
rv3d->persp = RV3D_CAMOB;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user