Commit 97a4511f authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix createJointGroup

parent 9b3c0d8d
......@@ -492,6 +492,8 @@ namespace hpp {
gepetto::gui::MainWindow* main = gepetto::gui::MainWindow::instance ();
std::string target = escapeJointName(jn);
graphics::GroupNodePtr_t group = main->osg()->getGroup (target.c_str(), false);
if (group) return target;
if (main->osg()->createGroup(target.c_str())) {
main->osg()->addToGroup(target.c_str(), "joints");
Supports Markdown
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