Thanks Stephan, fix now merged and submitted to svn/trunk.
On Thu, Nov 5, 2009 at 4:33 PM, Stephan Maximilian Huber <[email protected]> wrote: > Hi Robert, > > attached you'll find a bugfix for removeTransformUpdating and another > similar remove-method. > > The old code removed an element from a vector, which invalidates the > iterator of the loop This resulted in a crash on certain platforms. Now > the erasing is done the right way without invalidating the iterator. > > cheers, > Stephan > > -------- Original-Nachricht -------- > Betreff: Re: [osg-users] osgManipulator error bug? in > removeTransformUpdating > Datum: Thu, 05 Nov 2009 10:30:32 +0100 > Von: Stephan Maximilian Huber <[email protected]> > Antwort an: OpenSceneGraph Users <[email protected]> > An: [email protected] > Referenzen: <[email protected]> > > Hi Matthias, > > Matthias Asselborn schrieb: >> Why doesnt it work? >> Is there another way to activate and deactivate the dragger to the nodes? > > The Code in removeTransformUpdating seems buggy. The vector::iterator is > invalidated after the erase. > > Can you test the modified Dragger.cpp if it fixes your problem? If it > works on your end I'll submit it to osg-submissions > > cheers, > Stephan > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
