Changeset 229 for osgVisual/trunk/src
- Timestamp:
- Feb 13, 2011, 2:00:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/manip_Spacemouse/manip_nodeTrackerSpaceMouse.cpp
r228 r229 324 324 osg::NodePath nodePath; 325 325 326 if ( _trackNodePath.getNodePath(nodePath))327 328 329 326 if (_trackNodePath.getNodePath(nodePath) && !nodePath.empty()) 327 { 328 worldToLocal = osg::computeWorldToLocal(nodePath); 329 localToWorld = osg::computeLocalToWorld(nodePath); 330 330 nodeCenter = osg::Vec3d(nodePath.back()->getBound().center())*localToWorld; 331 331 } 332 332 else 333 {334 333 nodeCenter = osg::Vec3d(0.0f,0.0f,0.0f)*localToWorld; 335 }336 334 337 335
Note: See TracChangeset
for help on using the changeset viewer.