summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnchor <none@none>2019-01-28 01:51:58 -0800
committerAnchor <none@none>2019-01-28 01:51:58 -0800
commit597106fa34bca95c2d01c0bf28c6b2bdc031fe35 (patch)
treea28e3c247d73ac5818f274784507a0b5624b6129
parentd4abdf3560810b6bf0d08661abf592b4bb366e23 (diff)
[SL-1461] - fix black skirt
-rw-r--r--indra/newview/llvoavatar.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 9a4eb8b15b..2c42fbd3eb 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -3584,6 +3584,7 @@ void LLVOAvatar::updateAppearanceMessageDebugText()
debug_line += llformat(" %s", (isSitting() ? "S" : "T"));
debug_line += llformat("%s", (isMotionActive(ANIM_AGENT_SIT_GROUND_CONSTRAINED) ? "G" : "-"));
}
+
LLVector3 ankle_right_pos_agent = mFootRightp->getWorldPosition();
LLVector3 normal;
LLVector3 ankle_right_ground_agent = ankle_right_pos_agent;
@@ -7463,7 +7464,16 @@ BOOL LLVOAvatar::isWearingWearableType(LLWearableType::EType type) const
if (texture_dict->mIsUsedByBakedTexture)
{
const EBakedTextureIndex baked_index = texture_dict->mBakedTextureIndex;
- return isTextureDefined(LLAvatarAppearanceDictionary::getInstance()->getBakedTexture(baked_index)->mTextureIndex);
+
+ if (type == LLWearableType::WT_SKIRT)
+ {
+ return (LLAvatarAppearance::isWearingWearableType(type) && isTextureDefined(LLAvatarAppearanceDictionary::getInstance()->getBakedTexture(baked_index)->mTextureIndex));
+ }
+ else
+ {
+ return isTextureDefined(LLAvatarAppearanceDictionary::getInstance()->getBakedTexture(baked_index)->mTextureIndex);
+ }
+
}
return FALSE;
}