Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 10, 2018, 3:06:55 PM (6 years ago)
Author:
merholzl
Message:

Merged Masterserver, refresh button had to be removed

Location:
code/branches/mergeFS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mergeFS18

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

    r11795 r12027  
    109109        registerVariable(this->meshSrc_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMesh));
    110110        registerVariable(this->renderQueueGroup_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedRenderQueueGroup));
    111         registerVariable(this->materialName_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMaterial));
     111        //Commented out, since this causes texture load failures on client side
     112        //registerVariable(this->materialName_,    VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMaterial));
    112113        registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedShadows));
    113114    }
     
    130131                this->detachOgreObject(this->mesh_.getEntity());
    131132
    132             this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
     133                // Refuse to set empty mesh sources
     134                if (this->meshSrc_ != "")
     135                    this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
    133136
    134137            if (this->mesh_.getEntity())
Note: See TracChangeset for help on using the changeset viewer.