Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2008, 3:43:59 PM (16 years ago)
Author:
scheusso
Message:

made objects synchronisable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/orxonox/objects/Model.cc

    r1064 r1174  
    8282
    8383    bool Model::create(){
    84       WorldEntity::create();
     84      if(!WorldEntity::create())
     85        return false;
    8586      if ((this->meshSrc_ != "") && (this->meshSrc_.size() > 0))
    8687      {
    8788        this->mesh_.setMesh(meshSrc_);
    8889        this->attachObject(this->mesh_.getEntity());
    89         COUT(4) << "Loader: Created model" << std::endl;
     90        COUT(4) << "Loader (Model.cc): Created model" << std::endl;
    9091      }
    9192      return true;
     
    9394
    9495    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;
    9698      registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING);
    9799    }
Note: See TracChangeset for help on using the changeset viewer.