Added Geometry::containsDeprecatedData() / fixDeprecatedData()

This commit is contained in:
Robert Osfield
2013-06-27 13:37:26 +00:00
parent 092dd93be8
commit dfc1a899db

View File

@@ -65,7 +65,10 @@ osg::Image* Input::readImage()
osg::Drawable* Input::readDrawable()
{
return Registry::instance()->getDeprecatedDotOsgObjectWrapperManager()->readDrawable(*this);
osg::Drawable* drawable = Registry::instance()->getDeprecatedDotOsgObjectWrapperManager()->readDrawable(*this);
osg::Geometry* geometry = drawable ? drawable->asGeometry() : 0;
if (geometry && geometry->containsDeprecatedData()) geometry->fixDeprecatedData();
return drawable;
}
osg::StateAttribute* Input::readStateAttribute()