Ignore:
Timestamp:
Feb 1, 2011, 8:14:45 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

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

    r210 r215  
    5959        geometry = new osg::Group();
    6060        this->addChild( geometry );
     61        unsetGeometry();        // adds an osg::Node as geometry to make the visual_object trackable for node trackers.
    6162
    6263        // Labelnode hinzufügen
     
    7576                return NULL;
    7677
    77         OSG_NOTIFY( osg::ALWAYS ) << __FUNCTION__ << "Try to creating a new Model.." << std::endl;
     78        OSG_NOTIFY( osg::ALWAYS ) << __FUNCTION__ << " - Try to creating a new Model.." << std::endl;
    7879       
    7980        // Prepare Variables
     
    342343
    343344
    344 
    345 
    346345        osgVisual::visual_object* object = new osgVisual::visual_object( sceneRoot_, objectname );
    347346        object->lat = lat;
     
    462461        // remove old geometry
    463462        geometry->removeChildren(0, geometry->getNumChildren());
     463
     464        // Set std OSG Node to allow tracking of an osgVisual without
     465        geometry->addChild( new osg::Node() );
    464466}
    465467
Note: See TracChangeset for help on using the changeset viewer.