Changeset 214


Ignore:
Timestamp:
Jan 30, 2011, 9:03:09 PM (14 years ago)
Author:
Torben Dannhauer
Message:

Now nodetracking can be called any time after object creation and all node tracker are focused to this node.

Todo: Rebuild visual:object to be a Node, to allow tracking of visual_objects, not only of their geometries if loaded.

File:
1 edited

Legend:

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

    r213 r214  
    545545        if(trackedObject)
    546546        {
    547                 node = trackedObject;
     547                if(trackedObject->getGeometry())
     548                        node = trackedObject->getGeometry();
     549                else
     550                        node = trackedObject;
     551
    548552                // Object mounted manipulator ( Only working with visual_object, not with osg::Node )
    549553                if (objectMountedCameraManip.valid())
Note: See TracChangeset for help on using the changeset viewer.