Changeset 215 for osgVisual/trunk/src/object/visual_object.cpp
- Timestamp:
- Feb 1, 2011, 8:14:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/object/visual_object.cpp
r210 r215 59 59 geometry = new osg::Group(); 60 60 this->addChild( geometry ); 61 unsetGeometry(); // adds an osg::Node as geometry to make the visual_object trackable for node trackers. 61 62 62 63 // Labelnode hinzufügen … … 75 76 return NULL; 76 77 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; 78 79 79 80 // Prepare Variables … … 342 343 343 344 344 345 346 345 osgVisual::visual_object* object = new osgVisual::visual_object( sceneRoot_, objectname ); 347 346 object->lat = lat; … … 462 461 // remove old geometry 463 462 geometry->removeChildren(0, geometry->getNumChildren()); 463 464 // Set std OSG Node to allow tracking of an osgVisual without 465 geometry->addChild( new osg::Node() ); 464 466 } 465 467
Note: See TracChangeset
for help on using the changeset viewer.