Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2005, 12:31:47 AM (19 years ago)
Author:
patrick
Message:

collision_detection: work flush

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/world_entities/world_entity.cc

    r5713 r5717  
    104104  }
    105105  else
    106     this->model = NULL;
     106  {
     107        this->model = NULL;
     108        this->obbTree = NULL;
     109  }
    107110}
    108111
     
    113116bool WorldEntity::buildObbTree(unsigned int depth)
    114117{
    115   if (this->obbTree)
    116     delete this->obbTree;
    117 
    118   if (this->model != NULL)
    119   {
     118  if( this->model != NULL) {
    120119    PRINTF(4)("creating obb tree\n");
    121 
    122 
    123120    //this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    124121    this->obbTree = new OBBTree(depth, *model->getModelInfo());
     
    127124  else
    128125  {
    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");
    130127    this->obbTree = NULL;
    131128    return false;
Note: See TracChangeset for help on using the changeset viewer.