summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-09-07 23:23:17 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-09-08 01:11:27 +0300
commit6f16e6c4e0836353cb1a8d2c356abe4de78d315a (patch)
tree88b0fc3523e947f3e06368b106e45554aa9e8897 /indra
parentf9ed4fedab7c7deab20aeddd88ab40f3958af5a3 (diff)
SL-3278 Wrap debug code into debug option
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoavatar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index d567623ac0..c5ae80dca3 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -10432,8 +10432,7 @@ void LLVOAvatar::calculateUpdateRenderComplexity()
// Diagnostic output to identify all avatar-related textures.
// Does not affect rendering cost calculation.
- // Could be wrapped in a debug option if output becomes problematic.
- if (isSelf())
+ if (isSelf() && debugLoggingEnabled("ARCdetail"))
{
// print any attachment textures we didn't already know about.
for (LLVOVolume::texture_cost_t::iterator it = textures.begin(); it != textures.end(); ++it)