Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6142 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
Dec 16, 2005, 7:13:57 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merge the ObjectManager to the trunk
merged with command:
svn merge -r6082:HEAD objectmanager/ ../trunk/

conflicts resolution was easy this time :)
but specially merged the world to network_world

Location:
trunk/src/lib/coord
Files:
2 edited

Legend:

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

    r6078 r6142  
    8181    {
    8282      deleteNode = tmp;
    83       ++tmp;
     83      tmp++;
    8484//      printf("TEST::%s(%s) %s\n", (*deleteNode)->getName(), (*deleteNode)->getClassName(), this->getName());
    8585      if ((this->parentMode & PNODE_PROHIBIT_CHILD_DELETE) ||
     
    470470              this->getClassName(), this->getName(), child->getClassName(), child->getName());
    471471    child->parent = NULL;
     472    child->parentCoorChanged();
    472473  }
    473474}
     
    536537    if (this->parentMode & PNODE_REPARENT_CHILDREN_ON_REMOVE ||
    537538        (*reparenter)->parentMode & PNODE_REPARENT_ON_PARENTS_REMOVE)
    538     {      printf("TEST----------------%s ---- %s\n", this->getClassName(), (*reparenter)->getClassName());
     539    {
     540      printf("TEST----------------%s ---- %s\n", this->getClassName(), (*reparenter)->getClassName());
    539541      (*reparenter)->reparent();
    540542      printf("REPARENTED TO: %s::%s\n",(*reparenter)->getParent()->getClassName(),(*reparenter)->getParent()->getName());
     
    542544  }
    543545  if (this->parent != NULL)
     546  {
    544547    this->parent->eraseChild(this);
     548    this->parent = NULL;
     549  }
    545550}
    546551
  • trunk/src/lib/coord/p_node.h

    r6078 r6142  
    7979
    8080  // ACTIVATION //
    81   inline void activateNode() { this->bActive = true; };
     81  inline void activateNode() { this->bActive = this->bRelCoorChanged = this->bRelDirChanged = true; };
    8282  inline void deactivateNode() { this->bActive = false; };
    8383  inline bool getNodeActiveState() { return this->bActive; };
Note: See TracChangeset for help on using the changeset viewer.