diff options
| author | Todd Stinson <stinson@lindenlab.com> | 2012-08-23 15:11:10 -0700 |
|---|---|---|
| committer | Todd Stinson <stinson@lindenlab.com> | 2012-08-23 15:11:10 -0700 |
| commit | 6d84272d38a4d09819ae03f4d967195ec3bd660b (patch) | |
| tree | f020454f9144a769081e44ee7cd4acae7042394b /indra/newview/llpathfindinglinksetlist.cpp | |
| parent | ff95dd4a43fd888a9b7353abcbfa701e4844a3a5 (diff) | |
| parent | fcfc686d9c4125c7bf35fcc97cb40b18dd9a4fc1 (diff) | |
Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-beta.
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; |
