Changeset 869 for code/branches/core/src/orxonox/objects/Model.cc
- Timestamp:
- Mar 9, 2008, 4:04:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/objects/Model.cc
r793 r869 33 33 #include "../core/CoreIncludes.h" 34 34 #include "../Orxonox.h" 35 #include "core/XMLPort.h" 35 36 36 37 #include "Model.h" … … 60 61 } 61 62 63 /** 64 @brief XML loading and saving. 65 @param xmlelement The XML-element 66 @param loading Loading (true) or saving (false) 67 @return The XML-element 68 */ 69 Element& Model::XMLPort(Element& xmlelement, bool loading) 70 { 71 WorldEntity::XMLPort(xmlelement, loading); 72 73 XMLPortParamLoadOnly(Model, "mesh", setMesh, xmlelement, loading); 74 75 create(); 76 77 return xmlelement; 78 } 79 80 void Model::setMesh(const std::string& meshname) 81 { 82 this->meshSrc_ = meshname; 83 } 84 62 85 bool Model::create(){ 63 86 if(meshSrc_.compare("")!=0){
Note: See TracChangeset
for help on using the changeset viewer.