Changeset 9470 in orxonox.OLD for branches/proxy/src/world_entities/world_entity.cc
- Timestamp:
- Jul 25, 2006, 10:23:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/world_entity.cc
r9406 r9470 257 257 bool WorldEntity::buildObbTree(int depth) 258 258 { 259 if (this->obbTree) 259 if( this->obbTree != NULL) 260 { 260 261 delete this->obbTree; 262 this->obbTree = NULL; 263 } 261 264 262 265 if (this->models[0] != NULL) … … 280 283 this->aabbNode = new AABBTreeNode(); 281 284 this->aabbNode->spawnBVTree(this->models[0]); 285 } 286 else 287 { 288 PRINTF(1)("could not create aabb bounding box, because no model was loaded yet\n"); 289 this->aabbNode = NULL; 290 return false; 282 291 } 283 292 return true;
Note: See TracChangeset
for help on using the changeset viewer.