Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2008, 7:00:59 PM (17 years ago)
Author:
rgrieder
Message:

some adjustment to the default value setting in the overlay files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/tools/Mesh.h

    r1558 r1627  
    5252
    5353            inline void setVisible(bool visible)
    54                 { this->entity_->setVisible(visible); }
     54                { if (this->entity_) this->entity_->setVisible(visible); }
    5555            inline bool getVisible() const
    56                 { return this->entity_->getVisible(); }
     56                { if (this->entity_) return this->entity_->getVisible(); else return false; }
    5757
    5858        private:
Note: See TracChangeset for help on using the changeset viewer.