From 93da5a316164fbefbb52da33e762f2d91c7a69a5 Mon Sep 17 00:00:00 2001 From: Mike Kremer Date: Thu, 9 Jun 2011 13:46:11 +0000 Subject: [PATCH] Added PICK_CELL to possible picking modes when rendering picking for debug purposes. git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11795 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/optionHandling.cc | 2 ++ widgets/optionsWidget/optionsWidget.ui | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Core/optionHandling.cc b/Core/optionHandling.cc index 55443f2e..8ce7c547 100644 --- a/Core/optionHandling.cc +++ b/Core/optionHandling.cc @@ -116,6 +116,8 @@ void Core::applyOptions(){ target = ACG::SceneGraph::PICK_FRONT_VERTEX; } else if ( pickRenderMode == "PICK_FRONT_EDGE") { target = ACG::SceneGraph::PICK_FRONT_EDGE; + } else if ( pickRenderMode == "PICK_CELL") { + target = ACG::SceneGraph::PICK_CELL; } else { std::cerr << "Error : optionHandling unable to find pick mode!!! " << pickRenderMode.toStdString() << std::endl; target = ACG::SceneGraph::PICK_ANYTHING; diff --git a/widgets/optionsWidget/optionsWidget.ui b/widgets/optionsWidget/optionsWidget.ui index 3091385b..4b7d6c42 100644 --- a/widgets/optionsWidget/optionsWidget.ui +++ b/widgets/optionsWidget/optionsWidget.ui @@ -23,7 +23,7 @@ - 0 + 6 true @@ -1797,6 +1797,11 @@ p, li { white-space: pre-wrap; } PICK_FRONT_EDGE + + + PICK_CELL + + -- GitLab