diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcharacter/llcharacter.cpp | 21 |
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 | //----------------------------------------------------------------------------- | ||
382 | BOOL 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 | //----------------------------------------------------------------------------- |
382 | LLVisualParam* LLCharacter::getVisualParam(const char *param_name) | 403 | LLVisualParam* LLCharacter::getVisualParam(const char *param_name) |