Cleanup: quiet warnings
This commit is contained in:
@@ -1415,7 +1415,7 @@ void ED_screen_full_restore(bContext *C, ScrArea *area)
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
SpaceLink *sl = static_cast<SpaceLink *>(area->spacedata.first);
|
||||
bScreen *screen = CTX_wm_screen(C);
|
||||
short state = (screen ? screen->state : SCREENMAXIMIZED);
|
||||
short state = (screen ? screen->state : short(SCREENMAXIMIZED));
|
||||
|
||||
/* If full-screen area has a temporary space (such as a file browser or full-screen render
|
||||
* overlaid on top of an existing setup) then return to the previous space. */
|
||||
|
||||
@@ -493,7 +493,7 @@ bool ED_view3d_persp_ensure(const Depsgraph *depsgraph, View3D *v3d, ARegion *re
|
||||
if (rv3d->persp == RV3D_CAMOB) {
|
||||
/* If autopersp and previous view was an axis one,
|
||||
* switch back to PERSP mode, else reuse previous mode. */
|
||||
char persp = (autopersp && RV3D_VIEW_IS_AXIS(rv3d->lview)) ? RV3D_PERSP : rv3d->lpersp;
|
||||
char persp = (autopersp && RV3D_VIEW_IS_AXIS(rv3d->lview)) ? char(RV3D_PERSP) : rv3d->lpersp;
|
||||
ED_view3d_persp_switch_from_camera(depsgraph, v3d, rv3d, persp);
|
||||
}
|
||||
else if (autopersp && RV3D_VIEW_IS_AXIS(rv3d->view)) {
|
||||
|
||||
Reference in New Issue
Block a user