Correct error in recent smoothview edits
authorCampbell Barton <ideasman42@gmail.com>
Thu, 5 May 2016 09:58:03 +0000 (19:58 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 5 May 2016 09:58:45 +0000 (19:58 +1000)
source/blender/editors/space_view3d/view3d_edit.c

index 0c05e85631f7f9a8e219646e002aa43b9615fd95..9ee00d2413ca4f5ee9e1ec76c2745c94fa47ab14 100644 (file)
@@ -1649,10 +1649,10 @@ static int ndof_orbit_invoke(bContext *C, wmOperator *op, const wmEvent *event)
                viewops_data_alloc(C, op);
                viewops_data_create_ex(C, op, event,
                                       (U.uiflag & USER_ORBIT_SELECTION) != 0, false);
+               vod = op->customdata;
 
                ED_view3d_smooth_view_force_finish(C, vod->v3d, vod->ar);
 
-               vod = op->customdata;
                v3d = vod->v3d;
                rv3d = vod->rv3d;
 
@@ -1718,9 +1718,10 @@ static int ndof_orbit_zoom_invoke(bContext *C, wmOperator *op, const wmEvent *ev
                viewops_data_create_ex(C, op, event,
                                       (U.uiflag & USER_ORBIT_SELECTION) != 0, false);
 
+               vod = op->customdata;
+
                ED_view3d_smooth_view_force_finish(C, vod->v3d, vod->ar);
 
-               vod = op->customdata;
                v3d = vod->v3d;
                rv3d = vod->rv3d;