Changeset 1629 for code/branches/input/src/orxonox/objects/Model.cc
- Timestamp:
- Jun 27, 2008, 8:07:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/objects/Model.cc
r1511 r1629 53 53 Model::~Model() 54 54 { 55 if (this->isInitialized() && (this->meshSrc_ != "") && (this->meshSrc_.size() > 0)) 56 this->detachObject(this->mesh_.getEntity()); 55 57 } 56 58 57 59 /** 58 60 @brief XML loading and saving. 59 @p 60 aram xmlelement The XML-element 61 @param xmlelement The XML-element 61 62 @param loading Loading (true) or saving (false) 62 63 @return The XML-element … … 94 95 registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING); 95 96 } 97 98 void Model::changedVisibility() 99 { 100 WorldEntity::changedVisibility(); 101 if (this->isInitialized()) 102 this->mesh_.setVisible(this->isVisible()); 103 } 96 104 }
Note: See TracChangeset
for help on using the changeset viewer.