Hi,
OSG Inventor plugin is excellent. However, while reading an inventor file, the
sub-nodes lost their names which exist in *.iv file. This can be solved in this
way:
In /src/osgPlugins/Inventor/ConvertFromInventor.cpp
void
ConvertFromInventor::ivPushState(const SoCallbackAction *action,
const SoNode *initiator, const int flags,
osg::Group *root)
{
assert(ivStateStack.size() >= 1 && "There must be at least one "
"value in the ivStateStack to use ivPushState function.");
//////////////////////////////////////////////////////////////////////////
std::string name = initiator->getName().getString();
root->setName(name);
//////////////////////////////////////////////////////////////////////////
// APPEND_AT_PUSH
if (flags & IvStateItem::APPEND_AT_PUSH)
appendNode(root, action);
// Push state
ivStateStack.push(IvStateItem(ivStateStack.top(), action, initiator, flags,
root));
}
Hope this can be added to next version.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28350#28350
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org