From Martin Aumueller, added ref() and unref() to Inventor node handling.

This commit is contained in:
Robert Osfield
2004-09-09 08:18:43 +00:00
parent 568bd8f945
commit 2c60114a94

View File

@@ -56,9 +56,12 @@ ReaderWriterIV::readNode(const std::string& file,
if (rootIVNode)
{
rootIVNode->ref();
// Convert the inventor scenegraph to an osg scenegraph and return it
ConvertFromInventor convertIV;
return convertIV.convert(rootIVNode);
ReadResult result = convertIV.convert(rootIVNode);
rootIVNode->unref();
return result;
}
return ReadResult::FILE_NOT_HANDLED;