Ignore:
Timestamp:
Jan 30, 2011, 8:47:32 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/core/visual_core.cpp

    r212 r213  
    545545        if(trackedObject)
    546546        {
    547                 if(trackedObject->getGeometry())
    548                         node = trackedObject->getGeometry();
    549                 else
    550                         node = trackedObject;
     547                node = trackedObject;
     548                // Object mounted manipulator ( Only working with visual_object, not with osg::Node )
     549                if (objectMountedCameraManip.valid())
     550                        objectMountedCameraManip->setAttachedObject( trackedObject );
    551551        }
    552552        else
    553553                node = node_;
    554554
    555         // Object mounted manipulator
    556         if (objectMountedCameraManip.valid())
    557                 objectMountedCameraManip->setAttachedObject( node );
    558        
    559555        // Spacemouse Node Tracker
    560556#ifdef USE_SPACENAVIGATOR
Note: See TracChangeset for help on using the changeset viewer.