Changeset 3547 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Mar 14, 2005, 8:49:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r3546 r3547 328 328 { 329 329 PRINTF(2)("PNode::addChild() - reparenting node: removing it and adding it again\n"); 330 pNode->parent-> removeChild(pNode);330 pNode->parent->children->remove(pNode); 331 331 } 332 332 pNode->mode = mode; … … 339 339 \brief removes a child from the node 340 340 \param pNode the child to remove from this pNode. 341 342 Children from pNode will not be lost, they are referenced to NullPointer 341 343 */ 342 344 void PNode::removeChild (PNode* pNode) 343 345 { 344 /* 345 PNode* pn = this->children->enumerate(); 346 while( pn != NULL) 347 { 348 this->removeChild(pn); 349 np->addChild(pn, pn->getMode()); 350 pn = this->children->nextElement(); 351 } 352 353 */ 354 //pNode->remove(); 346 pNode->remove(); 355 347 this->children->remove (pNode); 356 348 pNode->parent = NULL;
Note: See TracChangeset
for help on using the changeset viewer.