summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-07-01 12:24:52 -0500
committerDave Parks <davep@lindenlab.com>2011-07-01 12:24:52 -0500
commit03d22f5366ad84e2c3a904dfd843c1274b67e41b (patch)
tree941599ddc8f20ba3d47bdc8df95b0db4ea7aac4c /indra
parenta1fb8ae0d0679499a68fb8dd1965ab5026878c73 (diff)
SH-1913 Fix for PE cost not updating appropriately when editing child prims of a linked set.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerobjectlist.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp
index 45c6777ae8..c772ea32d0 100644
--- a/indra/newview/llviewerobjectlist.cpp
+++ b/indra/newview/llviewerobjectlist.cpp
@@ -1395,6 +1395,10 @@ void LLViewerObjectList::updateActive(LLViewerObject *objectp)
void LLViewerObjectList::updateObjectCost(LLViewerObject* object)
{
+ if (!object->isRoot())
+ { //always fetch cost for the parent when fetching cost for children
+ mStaleObjectCost.insert(((LLViewerObject*)object->getParent())->getID());
+ }
mStaleObjectCost.insert(object->getID());
}