Added osgUI::Widget::set/getGraphicsSubgraph() to hold the subgraph that does the rendering portion of widgets

This commit is contained in:
Robert Osfield
2014-05-22 10:02:35 +00:00
parent 0b5b3213fe
commit bda5ec4875
8 changed files with 77 additions and 78 deletions

View File

@@ -114,7 +114,6 @@ void ComboBox::createGraphicsImplementation()
Style* style = (getStyle()!=0) ? getStyle() : Style::instance().get();
_switch = new osg::Switch;
addChild(_switch.get());
if (!_items.empty())
{
@@ -136,5 +135,7 @@ void ComboBox::createGraphicsImplementation()
}
_switch->setSingleChildOn(_currentItem);
setGraphicsSubgraph(_switch.get());
}
}