summaryrefslogtreecommitdiff
path: root/indra/newview/llcontrolavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-07-19 22:21:08 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-07-19 22:21:08 +0100
commit5610444d6450d5eb2e203be527116fe01d2d436a (patch)
tree8cab2d96488ff102fcc81fedd6a63c1737483362 /indra/newview/llcontrolavatar.cpp
parent6837ca5cd899d0aba71f856f540b535a7fc78595 (diff)
SL-714 - fixes to get wireframes to display consistently when right-clicking on animated objects.
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
-rw-r--r--indra/newview/llcontrolavatar.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp
index 94e5666a70..e9df81e255 100644
--- a/indra/newview/llcontrolavatar.cpp
+++ b/indra/newview/llcontrolavatar.cpp
@@ -194,7 +194,29 @@ void LLControlAvatar::updateDebugText()
std::vector<LLVOVolume*> volumes;
getAnimatedVolumes(volumes);
S32 animated_volume_count = volumes.size();
- addDebugText(llformat("CAV obj %d anim %d", total_linkset_count, animated_volume_count));
+ std::string active_string;
+ for (std::vector<LLVOVolume*>::iterator it = volumes.begin();
+ it != volumes.end(); ++it)
+ {
+ LLVOVolume *volp = *it;
+ if (volp && volp->mDrawable)
+ {
+ if (volp->mDrawable->isActive())
+ {
+ active_string += "A";
+ }
+ else
+ {
+ active_string += "S";
+ }
+ }
+ else
+ {
+ active_string += "-";
+ }
+ }
+ addDebugText(llformat("CAV obj %d anim %d active %s",
+ total_linkset_count, animated_volume_count, active_string.c_str()));
#if 0
// AXON - detailed rigged mesh info
for (std::vector<LLVOVolume*>::iterator it = volumes.begin();