Ignore:
Timestamp:
Feb 10, 2011, 12:51:47 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/object/visual_object.cpp

    r226 r227  
    284284        object->pitchAngle_theta = rot_y;
    285285        object->bankAngle_phi = rot_z;
     286        object->trackingId = trackingID;
    286287        if(label!="")
    287288                object->addLabel("default", label);
     
    322323   // We have a valid node, check to see if this is the node we
    323324   // are looking for. If so, return the current node.
    324    if (currNode_->className() == "visual_object")
    325    {
    326            //Check if it is the right tracking Id
    327                 osgVisual::visual_object* tmp = dynamic_cast<osgVisual::visual_object*>(currNode_);
    328                 if(tmp && tmp->getTrackingId()==trackingID)
    329                         return currNode_;
    330    }
     325        osgVisual::visual_object* tmp = dynamic_cast<osgVisual::visual_object*>(currNode_);
     326        if(tmp && tmp->getTrackingId()==trackingID)
     327                return currNode_;
     328   
    331329
    332330   // We have a valid node, but not the one we are looking for.
Note: See TracChangeset for help on using the changeset viewer.