Ignore:
Timestamp:
Feb 10, 2011, 2:18:04 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/manip_Spacemouse/manip_nodeTrackerSpaceMouse.cpp

    r221 r228  
    3939        RY=0;
    4040        RZ=0;
    41 
    4241}
    4342
     
    319318void NodeTrackerSpaceMouse::computeNodeCenterAndRotation(osg::Vec3d& nodeCenter, osg::Quat& nodeRotation) const
    320319{
     320        if (_trackNodePath.empty())
     321                return;
     322
    321323    osg::Matrixd localToWorld, worldToLocal;
    322324    osg::NodePath nodePath;
    323     if (_trackNodePath.getNodePath(nodePath))
     325       
     326    if (  _trackNodePath.getNodePath(nodePath))
    324327    {
    325328        worldToLocal = osg::computeWorldToLocal(nodePath);
Note: See TracChangeset for help on using the changeset viewer.