Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2010, 6:50:07 PM (14 years ago)
Author:
scheusso
Message:

fixed to make everything network-compliant again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/graphics/Model.cc

    r6942 r6961  
    115115                    Level* level_ = this->getLevel();
    116116                   
    117                     MeshLodInformation* lodInfo = level_->getLodInfo(this->meshSrc_);
    118                    
    119                     if(lodInfo!=0)
    120                         setLodLevel(lodInfo->getLodLevel());
     117                    // TODO: make this also working on the client (there is currently no level pointer in the baseobject on the client)
     118                    if( level_ != 0 && level_->getLodInfo(this->meshSrc_)!=0 )
     119                        setLodLevel(level_->getLodInfo(this->meshSrc_)->getLodLevel());
    121120                   
    122121                    COUT(4) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and scale: "<< scaleFactor << ":" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.