From ff8cdec8b6d69eb682dc5a2fc92a0169772c4a17 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Wed, 24 Jun 2009 00:56:07 +0000 Subject: [PATCH] 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 --- OpenMetaverse/AppearanceManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenMetaverse/AppearanceManager.cs b/OpenMetaverse/AppearanceManager.cs index 1671d719..727f119e 100644 --- a/OpenMetaverse/AppearanceManager.cs +++ b/OpenMetaverse/AppearanceManager.cs @@ -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)