Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5285 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Oct 6, 2005, 8:31:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer quit-modi
TextEngine is now deleted by GraphicsEngine
trying to fix errors in the Element2D deletion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.cc

    r5281 r5285  
    9797bool WorldEntity::buildObbTree(unsigned int depth)
    9898{
    99   if (this->obbTree)
    100     delete this->obbTree;
    101 
    102   if (this->model)
    103   {
    104     PRINTF(4)("creating obb tree\n");
    105     this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    106     return true;
    107   }
    108   else
    109   {
    110     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
    111     this->obbTree = NULL;
    112     return false;
    113   }
     99//   if (this->obbTree)
     100//     delete this->obbTree;
     101//
     102//   if (this->model)
     103//   {
     104//     PRINTF(4)("creating obb tree\n");
     105//     this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     106//     return true;
     107//   }
     108//   else
     109//   {
     110//     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
     111//     this->obbTree = NULL;
     112//     return false;
     113//  }
    114114}
    115115
Note: See TracChangeset for help on using the changeset viewer.