Added usage of osg::ConfigureBufferObjectsVisitor to correct for incoherent buffer oject set up due to the adhoc way that the OpenFlight plugin sets up osg::Geometry.

This commit is contained in:
Robert Osfield 2016-11-14 18:01:22 +00:00
parent 5b375124cc
commit 36b2ddac2d

View File

@ -328,6 +328,12 @@ class FLTReaderWriter : public ReaderWriter
}
}
if (rr.getNode())
{
osg::ConfigureBufferObjectsVisitor cbov;
rr.getNode()->accept(cbov);
}
// clear local cache.
if (nestedExternalsLevel==0)
flt::Registry::instance()->clearLocalCache();