Fix compilation with ndof code.

This commit is contained in:
Bastien Montagne
2018-05-21 21:18:12 +02:00
parent 612364181a
commit feabab6a9e

View File

@@ -1114,7 +1114,6 @@ static void view3d_ndof_orbit(
/* optional, can be NULL*/
ViewOpsData *vod)
{
const Depsgraph *depsgraph = CTX_data_depsgraph(C);
View3D *v3d = sa->spacedata.first;
RegionView3D *rv3d = ar->regiondata;
@@ -1122,7 +1121,7 @@ static void view3d_ndof_orbit(
BLI_assert((rv3d->viewlock & RV3D_LOCKED) == 0);
ED_view3d_persp_ensure(depsgraph, v3d, ar);
ED_view3d_persp_ensure(vod->depsgraph, v3d, ar);
rv3d->view = RV3D_VIEW_USER;