Changeset 6394 for code/branches/presentation2/src/orxonox/graphics
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/graphics/Billboard.cc
r5781 r6394 42 42 RegisterObject(Billboard); 43 43 44 this->material_ = "";45 44 this->colour_ = ColourValue::White; 46 45 // this->rotation_ = 0; … … 76 75 void Billboard::changedMaterial() 77 76 { 78 if (this->material_ == "")77 if (this->material_.empty()) 79 78 return; 80 79 … … 99 98 { 100 99 /* 101 if (this->getScene() && GameMode::showsGraphics() && (this->material_ != ""))100 if (this->getScene() && GameMode::showsGraphics() && !this->material_.empty()) 102 101 { 103 102 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1);
Note: See TracChangeset
for help on using the changeset viewer.