aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcharacter/llcharacter.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llcharacter/llcharacter.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/linden/indra/llcharacter/llcharacter.cpp b/linden/indra/llcharacter/llcharacter.cpp
index 0339cf0..ad648f8 100644
--- a/linden/indra/llcharacter/llcharacter.cpp
+++ b/linden/indra/llcharacter/llcharacter.cpp
@@ -377,6 +377,27 @@ void LLCharacter::clearVisualParamWeights()
377} 377}
378 378
379//----------------------------------------------------------------------------- 379//-----------------------------------------------------------------------------
380// BOOL visualParamWeightsAreDefault()
381//-----------------------------------------------------------------------------
382BOOL LLCharacter::visualParamWeightsAreDefault()
383{
384 for (LLVisualParam *param = getFirstVisualParam();
385 param;
386 param = getNextVisualParam())
387 {
388 if (param->getGroup() == VISUAL_PARAM_GROUP_TWEAKABLE)
389 {
390 if (param->getWeight() != param->getDefaultWeight())
391 return false;
392 }
393 }
394
395 return true;
396}
397
398
399
400//-----------------------------------------------------------------------------
380// getVisualParam() 401// getVisualParam()
381//----------------------------------------------------------------------------- 402//-----------------------------------------------------------------------------
382LLVisualParam* LLCharacter::getVisualParam(const char *param_name) 403LLVisualParam* LLCharacter::getVisualParam(const char *param_name)