Changeset 4814 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jul 7, 2005, 3:27:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4813 r4814 50 50 this->nodeLeft = NULL; 51 51 this->nodeRight = NULL; 52 this->bvElement = NULL; 52 53 53 54 if(coMat == NULL) … … 79 80 OBBTreeNode::~OBBTreeNode () 80 81 { 81 82 delete [] this->vertices; 83 84 delete this->bvElement; 85 delete this->nodeLeft; 86 delete this->nodeRight; 82 if( this->nodeLeft) 83 { 84 delete this->nodeLeft; 85 this->nodeLeft = NULL; 86 } 87 if( this->nodeRight) 88 { 89 delete this->nodeRight; 90 this->nodeRight = NULL; 91 } 92 printf("deleting nr %i obbTreeNode\n", this->getIndex()); 93 if( this->bvElement) 94 delete this->bvElement; 95 this->bvElement = NULL; 87 96 } 88 97 … … 113 122 PRINTF(3)("Calculated attributes3\n"); 114 123 124 /* if this is the first node, the vertices data are the original ones of the model itself, so dont delete them in cleanup */ 125 if( this->treeIndex == 1) 126 this->bvElement->bOrigVertices = true; 115 127 116 128 if( likely( this->depth > 0))
Note: See TracChangeset
for help on using the changeset viewer.