Changeset 9656 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- Aug 4, 2006, 11:01:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r9406 r9656 54 54 parent->addChild(this); 55 55 56 this->relCoordinate_handle = this->registerVarId( new SynchronizeableVector( &relCoordinate, &relCoordinate_write, "coordinate" ) );57 this->relDirection_handle = this->registerVarId( new SynchronizeableQuaternion( &relDirection, &relDirection_write, "direction" ) );56 this->relCoordinate_handle = this->registerVarId( new SynchronizeableVector( &relCoordinate, &relCoordinate_write, "coordinate", PERMISSION_SERVER ) ); 57 this->relDirection_handle = this->registerVarId( new SynchronizeableQuaternion( &relDirection, &relDirection_write, "direction", PERMISSION_SERVER ) ); 58 58 } 59 59 … … 487 487 void PNode::addChild (PNode* child) 488 488 { 489 if (unlikely(child->parent == this)) 490 return; 489 491 if( likely(child->parent != NULL)) 490 492 child->parent->eraseChild(child); … … 749 751 { 750 752 const PNode* parent = this; 753 if (this == NULL) 754 return true; 751 755 while ( (parent = parent->getParent()) != NULL) 752 756 if (unlikely(parent == checkParent))
Note: See TracChangeset
for help on using the changeset viewer.