Changeset 5980 for code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
- Timestamp:
- Oct 21, 2009, 4:06:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r5781 r5980 48 48 #include "core/ConsoleCommand.h" 49 49 50 #include "OverlayGroup.h" 51 50 52 namespace orxonox 51 53 { … … 165 167 void OrxonoxOverlay::changedVisibility() 166 168 { 169 SUPER( OrxonoxOverlay, changedVisibility ); 170 167 171 if (!this->overlay_) 168 172 return; 169 173 170 if (this->isVisible()) 174 // only set to visible if corresponding OverlayGroup is also visible 175 if (this->isVisible() && (!this->getOverlayGroup() || this->getOverlayGroup()->isVisible()) ) 171 176 this->overlay_->show(); 172 177 else
Note: See TracChangeset
for help on using the changeset viewer.