diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-11-06 14:02:38 +0000 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-11-06 14:02:38 +0000 |
commit | e8fe39f33266c96797ca976978b24bf9cd778f8c (patch) | |
tree | 5b5d97ed672350506edf235905cf16810633731b /indra/newview/llviewerobject.cpp | |
parent | e00f4d739bb7b4feb0af72ceb0ad9e469beee3c9 (diff) |
SL-830 - more diagnostics and possible fixes around corrupted graphics state
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index b17d83486f..404a771571 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -688,6 +688,18 @@ void LLViewerObject::setNameValueList(const std::string& name_value_list) } } +BOOL LLViewerObject::isAnySelected() const +{ + bool any_selected = isSelected(); + for (child_list_t::const_iterator iter = mChildList.begin(); + iter != mChildList.end(); iter++) + { + const LLViewerObject* child = *iter; + any_selected = any_selected || child->isSelected(); + } + return any_selected; +} + void LLViewerObject::setSelected(BOOL sel) { mUserSelected = sel; |