[Orxonox-commit 2225] r6941 - code/branches/hudelements/src/modules/overlays/hud

scheusso at orxonox.net scheusso at orxonox.net
Thu May 20 20:17:16 CEST 2010


Author: scheusso
Date: 2010-05-20 20:17:16 +0200 (Thu, 20 May 2010)
New Revision: 6941

Modified:
   code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc
Log:
don't exactly know why, but this resolves the problem of the wrong material for arrow/marker overlay when a bot spawns inView


Modified: code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc
===================================================================
--- code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc	2010-05-20 17:38:53 UTC (rev 6940)
+++ code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc	2010-05-20 18:17:16 UTC (rev 6941)
@@ -278,7 +278,7 @@
         // Create arrow/marker
         Ogre::PanelOverlayElement* panel = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton()
             .createOverlayElement("Panel", "HUDNavigation_navMarker_" + getUniqueNumberString()));
-        panel->setMaterialName("Orxonox/NavArrows");
+        panel->setMaterialName("Orxonox/NavTDC");
         panel->setDimensions(navMarkerSize_ * xScale, navMarkerSize_ * yScale);
 
         Ogre::TextAreaOverlayElement* text = static_cast<Ogre::TextAreaOverlayElement*>(Ogre::OverlayManager::getSingleton()
@@ -286,7 +286,7 @@
         text->setFontName(this->fontName_);
         text->setCharHeight(text->getCharHeight() * yScale);
 
-        ObjectInfo tempStruct = {panel, text, true};
+        ObjectInfo tempStruct = {panel, text, false};
         activeObjectList_[object] = tempStruct;
 
         this->background_->addChild(panel);




More information about the Orxonox-commit mailing list