Hi Tan,

If you want you changes merged you'll need to post the full modified
file to osg-submissions.

  
http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol

Cheers,
Robert.

On Mon, May 31, 2010 at 8:35 AM, Tan Dunming <[email protected]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to