summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-07-15 17:06:26 -0500
committerDave Parks <davep@lindenlab.com>2010-07-15 17:06:26 -0500
commite4c81b920f0fe8efec4047b86fb683fcd8bc2318 (patch)
treedb9525340ecdd280ff71fd708f3f0d28b1f62ae8 /indra
parent93ea3d2850067c23ff07f0ffb362b73247840e9a (diff)
Make tools floater update automatically when object cost received.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerobject.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index 862359005e..2b89deaa53 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -69,6 +69,7 @@
#include "lldrawable.h"
#include "llface.h"
#include "llfloaterproperties.h"
+#include "llfloatertools.h"
#include "llfollowcam.h"
#include "llselectmgr.h"
#include "llrendersphere.h"
@@ -855,6 +856,10 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
#endif
//clear cost and linkset cost
mCostStale = true;
+ if (isSelected())
+ {
+ gFloaterTools->dirty();
+ }
LLUUID audio_uuid;
LLUUID owner_id; // only valid if audio_uuid or particle system is not null
@@ -1423,6 +1428,11 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
#endif
mCostStale = true;
+ if (isSelected())
+ {
+ gFloaterTools->dirty();
+ }
+
dp->unpackU32(crc, "CRC");
mTotalCRC = crc;
dp->unpackU8(material, "Material");
@@ -2903,12 +2913,22 @@ void LLViewerObject::setObjectCost(F32 cost)
{
mObjectCost = cost;
mCostStale = false;
+
+ if (isSelected())
+ {
+ gFloaterTools->dirty();
+ }
}
void LLViewerObject::setLinksetCost(F32 cost)
{
mLinksetCost = cost;
mCostStale = false;
+
+ if (isSelected())
+ {
+ gFloaterTools->dirty();
+ }
}