summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatertools.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-10-07 14:00:43 -0500
committerDave Parks <davep@lindenlab.com>2010-10-07 14:00:43 -0500
commitb70ccfe8e31cd253069a6e0ae0ec03e301d26578 (patch)
tree3c0a9311788b99dcf343f43f163d28fa17ffbf3e /indra/newview/llfloatertools.cpp
parente83b815c0fff09cd7d0d4c0198ed7bdc1fa296ad (diff)
Add pure physics cost to UI
Diffstat (limited to 'indra/newview/llfloatertools.cpp')
-rw-r--r--indra/newview/llfloatertools.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp
index 8a8177abde..e5c6fe7631 100644
--- a/indra/newview/llfloatertools.cpp
+++ b/indra/newview/llfloatertools.cpp
@@ -434,6 +434,10 @@ void LLFloaterTools::refresh()
LLSelectMgr::getInstance()->getSelection()->getSelectedObjectCost();
F32 link_cost =
LLSelectMgr::getInstance()->getSelection()->getSelectedLinksetCost();
+ F32 obj_physics_cost =
+ LLSelectMgr::getInstance()->getSelection()->getSelectedPhysicsCost();
+ F32 link_physics_cost =
+ LLSelectMgr::getInstance()->getSelection()->getSelectedLinksetPhysicsCost();
// Update the text for the counts
childSetTextArg(
@@ -443,11 +447,10 @@ void LLFloaterTools::refresh()
childSetTextArg("object_count", "[COUNT]", object_count_string);
// Update the text for the resource costs
- childSetTextArg(
- "linked_set_cost",
- "[COST]",
- llformat("%.1f", link_cost));
+ childSetTextArg("linked_set_cost","[COST]",llformat("%.1f", link_cost));
childSetTextArg("object_cost", "[COST]", llformat("%.1f", obj_cost));
+ childSetTextArg("linked_set_cost","[PHYSICS]",llformat("%.1f", link_physics_cost));
+ childSetTextArg("object_cost", "[PHYSICS]", llformat("%.1f", obj_physics_cost));
// Display rendering cost if needed
if (sShowObjectCost)