Skip to content
Snippets Groups Projects
Commit 52b53f58 authored by stefan's avatar stefan
Browse files

Added shortcut to pick an atom (single mouse click)

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2092 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 8697c41f
Branches
Tags
No related merge requests found
...@@ -217,6 +217,8 @@ void GLCanvas::RequestContextMenu(const QPoint& pos) ...@@ -217,6 +217,8 @@ void GLCanvas::RequestContextMenu(const QPoint& pos)
void GLCanvas::HandleMousePressEvent(QMouseEvent* event) void GLCanvas::HandleMousePressEvent(QMouseEvent* event)
{ {
gfx::Scene& scene=gfx::Scene::Instance();
scene.Pick(event->x(), scene.GetViewport().height-event->y(), 0);
event->accept(); event->accept();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment