Changeset 631
- Timestamp:
- Dec 19, 2007, 12:25:13 AM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/Model.cc
r630 r631 15 15 { 16 16 RegisterObject(Model); 17 registerAllVariables();18 17 } 19 18 … … 30 29 meshSrc_ = xmlElem->Attribute("mesh"); 31 30 } 31 create(); 32 32 } 33 33 34 34 bool Model::create(){ 35 this->mesh_.setMesh(meshSrc_); 36 this->attachObject(this->mesh_.getEntity()); 37 38 COUT(4) << "Loader: Created model" << std::endl; 35 if(meshSrc_.compare("")!=0){ 36 this->mesh_.setMesh(meshSrc_); 37 this->attachObject(this->mesh_.getEntity()); 38 COUT(4) << "Loader: Created model" << std::endl; 39 } 40 registerAllVariables(); 39 41 return true; 40 42 } -
code/branches/FICN/src/orxonox/objects/WorldEntity.cc
r630 r631 46 46 RegisterObject(WorldEntity); 47 47 48 registerAllVariables();49 48 if (Orxonox::getSingleton()->getSceneManager()) 50 49 { … … 157 156 158 157 bool WorldEntity::create(){ 158 registerAllVariables(); 159 159 return true; 160 160 }
Note: See TracChangeset
for help on using the changeset viewer.