diff options
author | andreykproductengine <akleshchev@productengine.com> | 2014-10-10 15:14:37 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2014-10-10 15:14:37 +0300 |
commit | 1414b5a0f923e265a8b38b297902b83c62394eb4 (patch) | |
tree | 38b6ea2a6ec43a3f8f269b214cfbde213712f991 /indra | |
parent | a1f983f63cfb9737cc2f182fe6fc6deff9b1ee75 (diff) |
MAINT-4096 FIXED Object's new land impact is not shown in build tool until new face or prim in linkset is selected, after adding or removing only material to/from child prim
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llviewerobject.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 78e9216f61..690d6aebe2 100755 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -3367,8 +3367,17 @@ void LLViewerObject::setLinksetCost(F32 cost) { mLinksetCost = cost; mCostStale = false; - - if (isSelected()) + + BOOL needs_refresh = isSelected(); + child_list_t::iterator iter = mChildList.begin(); + while(iter != mChildList.end() && !needs_refresh) + { + LLViewerObject* child = *iter; + needs_refresh = child->isSelected(); + iter++; + } + + if (needs_refresh) { gFloaterTools->dirty(); } |