Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2018, 2:56:24 PM (7 years ago)
Author:
patricwi
Message:

Merged Masterserver

Location:
code/branches/PresentationFS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/PresentationFS18

  • code/branches/PresentationFS18/src/orxonox/graphics/Model.cc

    r11783 r12020  
    104104        registerVariable(this->meshSrc_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMesh));
    105105        registerVariable(this->renderQueueGroup_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedRenderQueueGroup));
    106         registerVariable(this->materialName_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMaterial));
     106        //Commented out, since this causes texture load failures on client side
     107        //registerVariable(this->materialName_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMaterial));
    107108        registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedShadows));
    108109    }
     
    125126                this->detachOgreObject(this->mesh_.getEntity());
    126127
    127             this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
     128                // Refuse to set empty mesh sources
     129                if (this->meshSrc_ != "")
     130                    this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
    128131
    129132            if (this->mesh_.getEntity())
Note: See TracChangeset for help on using the changeset viewer.