Hi Vincent, I don't know if anyone else can make sense of what you are trying to do, based on your email, but I'm just lost. I kinda doubt the problem is really about ref_ptr<>, but something related to the overall code that you have written, but since I can't really spot what you intend or what might be going on I certainly can't help.
Robert. On Fri, May 23, 2008 at 9:02 AM, Vincent Bourdier <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm making some function to modify graph after some operation, and so I need > to call some simple actions in functions. > > The problem is about ref_ptr : > > I need to do this : > > osg::ref_ptr<osg::Group> mygroup; > [..] > mygroup = NULL; > [...] > > To do that in a function, I use someting like : > addonstack(mygroup, NULL); //prototype is : > addonstack(osg::ref_ptr<osg::Group> caller, osg::Node* arg1); > > which did this : > osg::ref_ptr<osg::Node> nd = dynamic_cast<osg::Node*>(caller.get()); > if(nd.get()){ > nd =arg1; > > But, the problem is that it doesn't change anything... I need, without > making some modifications in the addonstack prototype, a way to put the > ref_ptr to NULL . > > Any idea ? > Thanks. > > Regards, > Vincent. > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org