From Martin Aumueller, added ref() and unref() to Inventor node handling.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user