Changeset 1174 for code/branches/network3/src/orxonox/objects/Model.cc
- Timestamp:
- Apr 24, 2008, 3:43:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/orxonox/objects/Model.cc
r1064 r1174 82 82 83 83 bool Model::create(){ 84 WorldEntity::create(); 84 if(!WorldEntity::create()) 85 return false; 85 86 if ((this->meshSrc_ != "") && (this->meshSrc_.size() > 0)) 86 87 { 87 88 this->mesh_.setMesh(meshSrc_); 88 89 this->attachObject(this->mesh_.getEntity()); 89 COUT(4) << "Loader : Created model" << std::endl;90 COUT(4) << "Loader (Model.cc): Created model" << std::endl; 90 91 } 91 92 return true; … … 93 94 94 95 void Model::registerAllVariables(){ 95 WorldEntity::registerAllVariables(); 96 // WorldEntity::registerAllVariables(); 97 COUT(5) << "Model.cc:registering new meshsrc with size: " << meshSrc_.length()+1 << " this: " << this << std::endl; 96 98 registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING); 97 99 }
Note: See TracChangeset
for help on using the changeset viewer.