Added support for NodeKits to the osgDB::Registry. Object names in .osg

files which have the library::class syntax will automatically invoke
the dynamic loading of either a nodekit or database plugin.
This commit is contained in:
Robert Osfield
2002-06-07 10:03:49 +00:00
parent 9e982e6b32
commit f8502a076c
3 changed files with 143 additions and 23 deletions

View File

@@ -268,7 +268,11 @@ FieldReaderIterator& FieldReaderIterator::operator += (int no)
// whole block if the current field[0] is an open bracket
void FieldReaderIterator::advanceOverCurrentFieldOrBlock()
{
if (field(0).isOpenBracket()) advanceToEndOfCurrentBlock();
if (field(0).isOpenBracket())
{
advanceToEndOfCurrentBlock();
++(*this); // skip the trailing '}'
}
else ++(*this);
}