Commit b4c193a6 authored by Jan Möbius's avatar Jan Möbius

Fixed signal view changed beeing emitted during move events without actually changing the view

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7076 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b9ed2e15
......@@ -1738,7 +1738,6 @@ void glViewer::viewMouseEvent(QMouseEvent* _event) {
treatFirstPersonNavigation(_event);
}
emit viewChanged();
}
//----------------------------------------------------------------------------
......@@ -1791,6 +1790,8 @@ void glViewer::treatFirstPersonNavigation( QMouseEvent* _event) {
updateGL();
lastMoveTime_.restart();
emit viewChanged();
break;
}
......@@ -1859,6 +1860,7 @@ void glViewer::treatNormalNavigation( QMouseEvent* _event ) {
value_y = scene_radius_ * ((newPoint2D.y() - lastPoint2D_.y())) * 3.0 / (double) glHeight();
translate(ACG::Vec3d(0.0, 0.0, value_y * factor));
updateGL();
emit viewChanged();
break;
}
......@@ -1867,6 +1869,7 @@ void glViewer::treatNormalNavigation( QMouseEvent* _event ) {
orthoWidth_ -= value_y * factor;
updateProjectionMatrix();
updateGL();
emit viewChanged();
break;
}
}
......@@ -1909,6 +1912,7 @@ void glViewer::treatNormalNavigation( QMouseEvent* _event ) {
updateGL();
lastMoveTime_.restart();
emit viewChanged();
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment