Changeset 6142 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- Dec 16, 2005, 7:13:57 PM (19 years ago)
- Location:
- trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r6078 r6142 81 81 { 82 82 deleteNode = tmp; 83 ++tmp;83 tmp++; 84 84 // printf("TEST::%s(%s) %s\n", (*deleteNode)->getName(), (*deleteNode)->getClassName(), this->getName()); 85 85 if ((this->parentMode & PNODE_PROHIBIT_CHILD_DELETE) || … … 470 470 this->getClassName(), this->getName(), child->getClassName(), child->getName()); 471 471 child->parent = NULL; 472 child->parentCoorChanged(); 472 473 } 473 474 } … … 536 537 if (this->parentMode & PNODE_REPARENT_CHILDREN_ON_REMOVE || 537 538 (*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()); 539 541 (*reparenter)->reparent(); 540 542 printf("REPARENTED TO: %s::%s\n",(*reparenter)->getParent()->getClassName(),(*reparenter)->getParent()->getName()); … … 542 544 } 543 545 if (this->parent != NULL) 546 { 544 547 this->parent->eraseChild(this); 548 this->parent = NULL; 549 } 545 550 } 546 551 -
trunk/src/lib/coord/p_node.h
r6078 r6142 79 79 80 80 // ACTIVATION // 81 inline void activateNode() { this->bActive = t rue; };81 inline void activateNode() { this->bActive = this->bRelCoorChanged = this->bRelDirChanged = true; }; 82 82 inline void deactivateNode() { this->bActive = false; }; 83 83 inline bool getNodeActiveState() { return this->bActive; };
Note: See TracChangeset
for help on using the changeset viewer.