Changeset 215 for osgVisual/trunk/src/core
- Timestamp:
- Feb 1, 2011, 8:14:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/core/visual_core.cpp
r214 r215 481 481 // 482 482 483 osg::ref_ptr<visual_object> testObj4 = new visual_object( rootNode, "SAENGER2 " ); // todo memleak483 osg::ref_ptr<visual_object> testObj4 = new visual_object( rootNode, "SAENGER23" ); // todo memleak 484 484 testObj4->setNewPosition( osg::DegreesToRadians(47.8123), osg::DegreesToRadians(12.94088), 650 ); 485 485 testObj4->loadGeometry( "../models/saenger2.flt" ); 486 486 testObj4->addUpdater( new object_updater(testObj4) ); // todo memleak 487 testObj4->addLabel("testLabel", " LabelTest!!\nnächste Zeile:)",osg::Vec4(1.0f,0.25f,1.0f,1.0f));487 testObj4->addLabel("testLabel", "Object4 :)",osg::Vec4(1.0f,0.25f,1.0f,1.0f)); 488 488 489 489 //osg::ref_ptr<visual_object> testObj5 = new visual_object( rootNode, "SAENGER" ); // todo memleak … … 545 545 if(trackedObject) 546 546 { 547 if(trackedObject->getGeometry()) 548 node = trackedObject->getGeometry(); 549 else 550 node = trackedObject; 547 node = trackedObject->getGeometry(); 551 548 552 549 // Object mounted manipulator ( Only working with visual_object, not with osg::Node )
Note: See TracChangeset
for help on using the changeset viewer.