Fixed ancient annoyance of enabling any debug info display clobbering object hovertext. Object's real hovertext is now cached, and only substituted if overridden by setDebugText, and is properly recovered when debug text is cleared.

This commit is contained in:
Shyotl
2012-08-16 02:15:10 -05:00
committed by Siana Gearz
parent b8276fd8e3
commit 4d1e822de7
3 changed files with 35 additions and 14 deletions

View File

@@ -654,6 +654,9 @@ public:
// TODO: Make all this stuff private. JC
LLPointer<LLHUDText> mText;
std::string mHudTextString; //Cache for reset on debug infodisplay toggle.
LLColor4 mHudTextColor; //Cache for reset on debug infodisplay toggle.
LLPointer<LLHUDIcon> mIcon;
bool mIsNameAttachment;