Fix Zoom to Mouse Position ignored when zooming out

Own mistake in rB3a1cf838ca09. Thanks to @jenkm for pointing this out.
This commit is contained in:
Julian Eisel 2020-10-29 17:23:08 +01:00
parent ee4cdef4e3
commit 2e41db5277
1 changed files with 1 additions and 0 deletions

View File

@ -1059,6 +1059,7 @@ static int view_zoomout_invoke(bContext *C, wmOperator *op, const wmEvent *event
/* store initial mouse position (in view space) */
UI_view2d_region_to_view(
&region->v2d, event->mval[0], event->mval[1], &vzd->mx_2d, &vzd->my_2d);
vzd->zoom_to_mouse_pos = true;
}
return view_zoomout_exec(C, op);