From afecb727f17b62db52ed9c8461d933e16002fd60 Mon Sep 17 00:00:00 2001 From: Fabian Reister <fabian.reister@kit.edu> Date: Fri, 27 May 2022 09:09:09 +0200 Subject: [PATCH] brackets --- GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp b/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp index b283571a6..fcf4c144b 100644 --- a/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp +++ b/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp @@ -338,8 +338,9 @@ void GraspPlannerWindow::loadObject(const string& objFile) if (robotObject) { for (auto robotNode : robotObject->getRobotNodes()) { if (robotNode->getVisualization()) { - if (!object) + if (!object){ object = robotNode; + } UI.comboBoxObject->addItem(QString::fromStdString(robotNode->getName())); } } -- GitLab