Fix crahs using ndof
This commit is contained in:
parent
18ae64858b
commit
4bfc7b9e7d
|
@ -1112,7 +1112,6 @@ static void view3d_ndof_pan_zoom(
|
|||
|
||||
static void view3d_ndof_orbit(
|
||||
const struct wmNDOFMotionData *ndof, ScrArea *sa, ARegion *ar,
|
||||
/* optional, can be NULL*/
|
||||
ViewOpsData *vod, const bool apply_dyn_ofs)
|
||||
{
|
||||
View3D *v3d = sa->spacedata.first;
|
||||
|
@ -1445,7 +1444,7 @@ static int ndof_orbit_zoom_invoke(bContext *C, wmOperator *op, const wmEvent *ev
|
|||
ED_view3d_distance_set(rv3d, 0.0f);
|
||||
|
||||
if (has_rotation) {
|
||||
view3d_ndof_orbit(ndof, vod->sa, vod->ar, NULL, false);
|
||||
view3d_ndof_orbit(ndof, vod->sa, vod->ar, vod, false);
|
||||
}
|
||||
|
||||
ED_view3d_distance_set(rv3d, dist_backup);
|
||||
|
|
Loading…
Reference in New Issue