Re: [osg-users] NodetrackerManipulator crashes on activation if no Node is tracked.

2011-02-13 Thread Torben Dannhauer
Hi Robert, your changes are working as expected. Thank you! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36590#36590 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] NodetrackerManipulator crashes on activation if no Node is tracked.

2011-02-11 Thread Torben Dannhauer
Hi, My osgGa::NodeTrackerManipulator crashes if it is activated before setTrackNode(..) is called. Do I make a mistake or is the NodeTrackerManipulator not secured against activation prior to a well defined node to track? Thank you! Cheers, Torben -- Read this topic online

Re: [osg-users] NodetrackerManipulator crashes on activation if no Node is tracked.

2011-02-11 Thread Robert Osfield
Hi Torben, The manipulator shouldn't crash so this will be bug due to an assumption of having a valid nodepath somewhere in the code. Do you have a stack trace for the crash? Which version of the OSG are you using? Robert. On Fri, Feb 11, 2011 at 8:28 AM, Torben Dannhauer

Re: [osg-users] NodetrackerManipulator crashes on activation if no Node is tracked.

2011-02-11 Thread Torben Dannhauer
Hi Robert, The stack trace is: Code: osg71-osgGAd.dll!std::_Vector_const_iteratorosg::Node *,std::allocatorosg::Node * ::operator+=(int _Off=-1) Zeile 161 + 0x60 Bytes C++ osg71-osgGAd.dll!std::_Vector_iteratorosg::Node *,std::allocatorosg::Node * ::operator+=(int _Off=-1)

Re: [osg-users] NodetrackerManipulator crashes on activation if no Node is tracked.

2011-02-11 Thread Robert Osfield
Hi Torben Mourad, I have added a check against the getNodePath() being empty() to computeNodeCenterAndRotation() method and checked it into svn/trunk. The relevant code now looks like: osg::NodePath nodePath; if (_trackNodePath.getNodePath(nodePath) !nodePath.empty())