diff --git a/apps/opencs/view/render/worldspacewidget.cpp b/apps/opencs/view/render/worldspacewidget.cpp index e539c14b9..3f4b77383 100644 --- a/apps/opencs/view/render/worldspacewidget.cpp +++ b/apps/opencs/view/render/worldspacewidget.cpp @@ -563,25 +563,14 @@ void CSVRender::WorldspaceWidget::mousePressEvent (QMouseEvent *event) if (!mDragging) mDragMode = button; - - if (button=="p-navi" || button=="s-navi") - { - - } - else if (button=="p-edit" || button=="s-edit" || button=="select") - { - osg::ref_ptr tag = mousePick (event); - - handleMouseClick (tag, button); - } } void CSVRender::WorldspaceWidget::mouseReleaseEvent (QMouseEvent *event) { + std::string button = mapButton (event); + if (mDragging) { - std::string button = mapButton (event); - if (mDragMode=="p-navi" || mDragMode=="s-navi") { @@ -594,6 +583,19 @@ void CSVRender::WorldspaceWidget::mouseReleaseEvent (QMouseEvent *event) mDragging = false; } } + else + { + if (button=="p-navi" || button=="s-navi") + { + + } + else if (button=="p-edit" || button=="s-edit" || button=="select") + { + osg::ref_ptr tag = mousePick (event); + + handleMouseClick (tag, button); + } + } mDragMode.clear(); }