Changeset 630 for code/branches/FICN/src/orxonox/objects/Model.cc
- Timestamp:
- Dec 19, 2007, 12:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/Model.cc
r622 r630 15 15 { 16 16 RegisterObject(Model); 17 registerAllVariables(); 17 18 } 18 19 … … 27 28 if (xmlElem->Attribute("mesh")) 28 29 { 29 std::string src = xmlElem->Attribute("mesh"); 30 this->mesh_.setMesh(src); 31 this->attachObject(this->mesh_.getEntity()); 30 meshSrc_ = xmlElem->Attribute("mesh"); 32 31 } 32 } 33 34 bool Model::create(){ 35 this->mesh_.setMesh(meshSrc_); 36 this->attachObject(this->mesh_.getEntity()); 33 37 34 COUT(4) << "Loader: Created model" << std::endl; 38 COUT(4) << "Loader: Created model" << std::endl; 39 return true; 40 } 41 42 void Model::registerAllVariables(){ 43 registerVar(&meshSrc_, meshSrc_.length()+1, network::STRING); 35 44 } 36 45 }
Note: See TracChangeset
for help on using the changeset viewer.