Changeset 12027 for code/branches/mergeFS18/src/orxonox/graphics
- Timestamp:
- Oct 10, 2018, 3:06:55 PM (6 years ago)
- Location:
- code/branches/mergeFS18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mergeFS18
- 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/mergeFS18/src/orxonox/graphics/Model.cc
r11795 r12027 109 109 registerVariable(this->meshSrc_, VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedMesh)); 110 110 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)); 112 113 registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Model>(this, &Model::changedShadows)); 113 114 } … … 130 131 this->detachOgreObject(this->mesh_.getEntity()); 131 132 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_); 133 136 134 137 if (this->mesh_.getEntity())
Note: See TracChangeset
for help on using the changeset viewer.