Changeset 3668 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Mar 30, 2005, 11:40:16 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r3662 r3668 336 336 if( pNode->parent != NULL ) 337 337 { 338 PRINTF( 2)("PNode::addChild() - reparenting node: removing it and adding it again\n");338 PRINTF(3)("PNode::addChild() - reparenting node: removing it and adding it again\n"); 339 339 pNode->parent->children->remove(pNode); 340 340 } … … 368 368 NullParent* nullParent = NullParent::getInstance(); 369 369 370 PNode* pn = this->children->enumerate(); 370 tIterator<PNode>* iterator = this->children->getIterator(); 371 PNode* pn = iterator->nextElement(); 372 371 373 while( pn != NULL) 372 374 { 373 375 //this->children->remove(pn); 374 376 nullParent->addChild(pn, pn->getMode()); 375 pn = this->children->nextElement(); 376 } 377 pn = iterator->nextElement(); 378 } 379 delete iterator; 380 //this->parent->removeChild(this); 377 381 } 378 382
Note: See TracChangeset
for help on using the changeset viewer.