diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-22 20:09:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-22 20:09:15 +0300 |
commit | 0241e280498508552f204b6c61f1080b84265820 (patch) | |
tree | c5319623da812d88721944c9b48b794210531c65 | |
parent | c86395c02d4128a0b48f49bd0aa265bae60ea870 (diff) |
Fix error orbiting out of camera + orbit-selected
Would use the wrong view center (that wasn't update from the camera).
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 069541a3efe..c45e3aa2586 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -1221,7 +1221,6 @@ static int viewrotate_invoke(bContext *C, wmOperator *op, const wmEvent *event) /* makes op->customdata */ viewops_data_alloc(C, op); - viewops_data_create(C, op, event); vod = op->customdata; /* poll should check but in some cases fails, see poll func for details */ @@ -1239,6 +1238,8 @@ static int viewrotate_invoke(bContext *C, wmOperator *op, const wmEvent *event) ED_region_tag_redraw(vod->ar); } + viewops_data_create(C, op, event); + if (ELEM(event->type, MOUSEPAN, MOUSEROTATE)) { /* Rotate direction we keep always same */ int x, y; |