Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3547 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Mar 14, 2005, 8:49:56 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: finished work on pnode, now all has been done. until…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3546 r3547  
    328328    {
    329329      PRINTF(2)("PNode::addChild() - reparenting node: removing it and adding it again\n");
    330       pNode->parent->removeChild(pNode);
     330      pNode->parent->children->remove(pNode);
    331331    }
    332332  pNode->mode = mode;
     
    339339   \brief removes a child from the node
    340340   \param pNode the child to remove from this pNode.
     341
     342   Children from pNode will not be lost, they are referenced to NullPointer
    341343*/
    342344void PNode::removeChild (PNode* pNode)
    343345{
    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();
    355347  this->children->remove (pNode);
    356348  pNode->parent = NULL;
Note: See TracChangeset for help on using the changeset viewer.