Clamp LLMeshSkinInfo::mJointNames to a max of 64 entries. Also checking size in lldrawpoolavatar(Redundant checks added to just match similar logic LLRiggedVolume::update more closely.)
This commit is contained in:
@@ -2076,7 +2076,8 @@ void LLMeshSkinInfo::fromLLSD(LLSD& skin)
|
||||
{
|
||||
if (skin.has("joint_names"))
|
||||
{
|
||||
for (U32 i = 0; i < (U32)skin["joint_names"].size(); ++i)
|
||||
const U32 joint_count = llmin((U32)skin["joint_names"].size(),(U32)64);
|
||||
for (U32 i = 0; i < joint_count; ++i)
|
||||
{
|
||||
mJointNames.push_back(skin["joint_names"][i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user