diff options
| author | Oz Linden <oz@lindenlab.com> | 2012-08-16 21:27:50 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2012-08-16 21:27:50 -0400 |
| commit | a0be18bd2e268f692e781d376be7bef4e71e46fb (patch) | |
| tree | 6e43af94f76e524c9d0556b1801d870d75231963 /indra/newview/llpathfindinglinksetlist.cpp | |
| parent | 75a3183ad778cf2b7e2ed343345a82e3c0202ab0 (diff) | |
| parent | 331a76afaaed8f802cf8c313eed8a287e75e93fc (diff) | |
merge changes for DRTVWR-197
Diffstat (limited to 'indra/newview/llpathfindinglinksetlist.cpp')
| -rw-r--r-- | indra/newview/llpathfindinglinksetlist.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llpathfindinglinksetlist.cpp b/indra/newview/llpathfindinglinksetlist.cpp index 746fa342a1..b886e46765 100644 --- a/indra/newview/llpathfindinglinksetlist.cpp +++ b/indra/newview/llpathfindinglinksetlist.cpp @@ -113,6 +113,20 @@ bool LLPathfindingLinksetList::isShowUnmodifiablePhantomWarning(LLPathfindingLin return isShowWarning; } +bool LLPathfindingLinksetList::isShowPhantomToggleWarning(LLPathfindingLinkset::ELinksetUse pLinksetUse) const +{ + bool isShowWarning = false; + + for (const_iterator objectIter = begin(); !isShowWarning && (objectIter != end()); ++objectIter) + { + const LLPathfindingObjectPtr objectPtr = objectIter->second; + const LLPathfindingLinkset *linkset = dynamic_cast<const LLPathfindingLinkset *>(objectPtr.get()); + isShowWarning = linkset->isShowPhantomToggleWarning(pLinksetUse); + } + + return isShowWarning; +} + bool LLPathfindingLinksetList::isShowCannotBeVolumeWarning(LLPathfindingLinkset::ELinksetUse pLinksetUse) const { bool isShowWarning = false; |
