Changeset 12020 for code/branches/PresentationFS18/src/orxonox/graphics
- Timestamp:
- May 30, 2018, 2:56:24 PM (6 years ago)
- Location:
- code/branches/PresentationFS18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/PresentationFS18
- Property svn:mergeinfo changed
/code/branches/Masterserver_FS18 (added) merged: 11816,11829,11842,11856,11858,11880,11889,11905,11907,11910,11929-11930,11937,11962-11963,11973,11983,11990
- Property svn:mergeinfo changed
-
code/branches/PresentationFS18/src/orxonox/graphics/Model.cc
r11783 r12020 104 104 registerVariable(this->meshSrc_, VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMesh)); 105 105 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)); 107 108 registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedShadows)); 108 109 } … … 125 126 this->detachOgreObject(this->mesh_.getEntity()); 126 127 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_); 128 131 129 132 if (this->mesh_.getEntity())
Note: See TracChangeset
for help on using the changeset viewer.