From: <hug...@li...> - 2011-02-26 22:10:44
|
branch: details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/a227c5288366 changeset: 4989:a227c5288366 user: dmakreshanski <dma...@us...> date: Sat Feb 26 23:10:30 2011 +0100 description: fixed a bug with dragging images in panosphere jumps after clicking diffstat: src/hugin1/hugin/DragTool.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diffs (28 lines): diff -r 0d9e026e0120 -r a227c5288366 src/hugin1/hugin/DragTool.cpp --- a/src/hugin1/hugin/DragTool.cpp Sat Feb 26 21:28:47 2011 +0100 +++ b/src/hugin1/hugin/DragTool.cpp Sat Feb 26 23:10:30 2011 +0100 @@ -86,6 +86,7 @@ if (drag_yaw || drag_pitch || drag_roll) { + // how far are we moving? if (drag_yaw || drag_pitch) { @@ -115,6 +116,7 @@ { shift_angle = atan2(y - centre.y, x- centre.x) - start_angle; } + // move the selected images on the tempory copies for display. // first calculate a matrix representing the transformation if (drag_mode == drag_mode_mosaic) { @@ -221,7 +223,7 @@ // set angles double yaw, pitch; hugin_utils::FDiff2D mouse_pos = helper->GetMousePanoPosition(); - helper->GetViewStatePtr()->GetProjectionInfo()->ImageToAngular(yaw, + helper->GetVisualizationStatePtr()->GetProjectionInfo()->ImageToAngular(yaw, pitch, mouse_pos.x, mouse_pos.y); start_coordinates.x = yaw; start_coordinates.y = pitch; shift_coordinates.x = yaw; shift_coordinates.y = pitch; |