Adding an AppearanceManager fix from kinoc that sets all appearance params to default values before updating the params from decoded wearables. Fixes scrunched faces and other miscellaneous appearance oddities

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2909 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-06-24 00:56:07 +00:00
parent dd4d781f4b
commit ff8cdec8b6

View File

@@ -912,6 +912,7 @@ namespace OpenMetaverse
if (vp.Group == 0)
{
set.VisualParam[vpIndex] = new AgentSetAppearancePacket.VisualParamBlock();
set.VisualParam[vpIndex].ParamValue = Utils.FloatToByte(vp.DefaultValue, vp.MinValue, vp.MaxValue);
// Try and find this value in our collection of downloaded wearables
foreach (WearableData data in Wearables.Dictionary.Values)