Apparently the navmesh can be dirty when dynamic pathfinding is disabled... fixed the icons to anticipate this silliness.

This commit is contained in:
Lirusaito
2013-05-22 11:41:06 -04:00
parent e3bd635510
commit 0509fdfdf2

View File

@@ -505,9 +505,9 @@ void LLStatusBar::refresh()
if (region)
{
bool pf_disabled = !region->dynamicPathfindingEnabled();
getChild<LLUICtrl>("pf_dirty")->setVisible(mIsNavMeshDirty);
getChild<LLUICtrl>("pf_dirty")->setVisible(!pf_disabled && mIsNavMeshDirty);
getChild<LLUICtrl>("pf_disabled")->setVisible(pf_disabled);
const std::string pf_icon = mIsNavMeshDirty ? "pf_dirty" : pf_disabled ? "pf_disabled" : "";
const std::string pf_icon = pf_disabled ? "pf_disabled" : mIsNavMeshDirty ? "pf_dirty" : "";
if (!pf_icon.empty())
{
x += 6;