Changeset 228 for osgVisual/trunk/src/manip_Spacemouse
- Timestamp:
- Feb 10, 2011, 2:18:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/manip_Spacemouse/manip_nodeTrackerSpaceMouse.cpp
r221 r228 39 39 RY=0; 40 40 RZ=0; 41 42 41 } 43 42 … … 319 318 void NodeTrackerSpaceMouse::computeNodeCenterAndRotation(osg::Vec3d& nodeCenter, osg::Quat& nodeRotation) const 320 319 { 320 if (_trackNodePath.empty()) 321 return; 322 321 323 osg::Matrixd localToWorld, worldToLocal; 322 324 osg::NodePath nodePath; 323 if (_trackNodePath.getNodePath(nodePath)) 325 326 if ( _trackNodePath.getNodePath(nodePath)) 324 327 { 325 328 worldToLocal = osg::computeWorldToLocal(nodePath);
Note: See TracChangeset
for help on using the changeset viewer.