Skip to content
Snippets Groups Projects
Commit 366c54e9 authored by Neal Orman's avatar Neal Orman
Browse files

EXT-1664 male avatars have female bodies

Previous patch improved the situation but reversed it - it was still possible to have a mismatch between an avatar's head and body for their gender.
This patch makes the copying of the gender from your shape wearable to your avatar more explicit, which appears to fix the issue for now.
This should get the behavior correct for testing purposes, and we will look into fixing more underlying issues for the next cycle.

Code reviewed by Seraph
parent a374d7b5
No related branches found
No related tags found
No related merge requests found
......@@ -693,6 +693,13 @@ void LLVOAvatarSelf::updateVisualParams()
}
}
LLWearable *shape = gAgentWearables.getWearable(WT_SHAPE,0);
if (shape)
{
F32 gender = shape->getVisualParamWeight(80); // param 80 == gender
setVisualParamWeight("male",gender ,TRUE);
}
LLVOAvatar::updateVisualParams();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment