diff options
author | Julian Eisel <julian@blender.org> | 2020-10-29 19:23:08 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-10-29 19:24:34 +0300 |
commit | 2e41db5277a5f90250f398ef3ea8777118dc34ee (patch) | |
tree | 9b6ecd27ebde4ee1f5779144dd8edc4143d18421 /source/blender | |
parent | ee4cdef4e3228d31ebbcc77276bfc7f037a5f814 (diff) |
Fix Zoom to Mouse Position ignored when zooming out
Own mistake in rB3a1cf838ca09. Thanks to @jenkm for pointing this out.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/view2d_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index e4a7ad0d635..d8ebbbca023 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -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( ®ion->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); |