Fix error orbiting out of camera + orbit-selected

Would use the wrong view center (that wasn't update from the camera).
This commit is contained in:
Campbell Barton 2015-12-23 04:09:15 +11:00
parent c86395c02d
commit 0241e28049
1 changed files with 2 additions and 1 deletions

View File

@ -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;