Changeset 229 for osgVisual/trunk
- Timestamp:
- Feb 13, 2011, 2:00:53 PM (14 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/bin/osgVisualConfig.xml
r227 r229 71 71 </geometry> 72 72 </model> 73 <trackmodel id=" 2" updater_slot=""></trackmodel>73 <trackmodel id="1" updater_slot=""></trackmodel> 74 74 </models> 75 75 <datetime day="0" month="0" year="0" hour="12" minute="30"></datetime> -
osgVisual/trunk/include/manip_Spacemouse/manip_nodeTrackerSpaceMouse.h
r221 r229 271 271 272 272 /** 273 * Pointer to Space Navigator interfac ce class.273 * Pointer to Space Navigator interface class. 274 274 */ 275 275 SpaceMouse* _spaceMouse; -
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.