Cleaned up handling of Drawables so it utilizes the Node inheritance properly.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14822 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -72,14 +72,8 @@ void StateSetManipulator::clone()
|
||||
itr != parents.end();
|
||||
++itr)
|
||||
{
|
||||
osg::Object* object = *itr;
|
||||
osg::Node* node = dynamic_cast<osg::Node*>(object);
|
||||
if (node) node->setStateSet(newStateSet.get());
|
||||
else
|
||||
{
|
||||
osg::Drawable* drawable = dynamic_cast<osg::Drawable*>(object);
|
||||
if (drawable) drawable->setStateSet(newStateSet.get());
|
||||
}
|
||||
osg::Node* node = *itr;
|
||||
node->setStateSet(newStateSet.get());
|
||||
}
|
||||
|
||||
_stateset = newStateSet;
|
||||
|
||||
Reference in New Issue
Block a user