Changeset 5717 in orxonox.OLD for branches/collision_detection/src/world_entities/world_entity.cc
- Timestamp:
- Nov 23, 2005, 12:31:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/world_entities/world_entity.cc
r5713 r5717 104 104 } 105 105 else 106 this->model = NULL; 106 { 107 this->model = NULL; 108 this->obbTree = NULL; 109 } 107 110 } 108 111 … … 113 116 bool WorldEntity::buildObbTree(unsigned int depth) 114 117 { 115 if (this->obbTree) 116 delete this->obbTree; 117 118 if (this->model != NULL) 119 { 118 if( this->model != NULL) { 120 119 PRINTF(4)("creating obb tree\n"); 121 122 123 120 //this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 124 121 this->obbTree = new OBBTree(depth, *model->getModelInfo()); … … 127 124 else 128 125 { 129 PRINTF( 2)("could not create obb-tree, because no model was loaded yet\n");126 PRINTF(1)("could not create obb-tree, because no model was loaded yet\n"); 130 127 this->obbTree = NULL; 131 128 return false;
Note: See TracChangeset
for help on using the changeset viewer.