diff options
Diffstat (limited to 'OpenSim/Services/Interfaces/IAvatarService.cs')
-rw-r--r-- | OpenSim/Services/Interfaces/IAvatarService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/Interfaces/IAvatarService.cs b/OpenSim/Services/Interfaces/IAvatarService.cs index 0caa521..c0130f1 100644 --- a/OpenSim/Services/Interfaces/IAvatarService.cs +++ b/OpenSim/Services/Interfaces/IAvatarService.cs | |||
@@ -201,7 +201,13 @@ namespace OpenSim.Services.Interfaces | |||
201 | appearance.Serial = Int32.Parse(Data["Serial"]); | 201 | appearance.Serial = Int32.Parse(Data["Serial"]); |
202 | 202 | ||
203 | if (Data.ContainsKey("AvatarHeight")) | 203 | if (Data.ContainsKey("AvatarHeight")) |
204 | appearance.AvatarHeight = float.Parse(Data["AvatarHeight"]); | 204 | { |
205 | float h = float.Parse(Data["AvatarHeight"]); | ||
206 | if( h == 0f) | ||
207 | h = 1.9f; | ||
208 | appearance.SetSize(new Vector3(0.45f, 0.6f, h )); | ||
209 | // appearance.AvatarHeight = float.Parse(Data["AvatarHeight"]); | ||
210 | } | ||
205 | 211 | ||
206 | // Legacy Wearables | 212 | // Legacy Wearables |
207 | if (Data.ContainsKey("BodyItem")) | 213 | if (Data.ContainsKey("BodyItem")) |
@@ -339,6 +345,7 @@ namespace OpenSim.Services.Interfaces | |||
339 | appearance.Wearables[AvatarWearable.EYES].Wear( | 345 | appearance.Wearables[AvatarWearable.EYES].Wear( |
340 | AvatarWearable.DefaultWearables[ | 346 | AvatarWearable.DefaultWearables[ |
341 | AvatarWearable.EYES][0]); | 347 | AvatarWearable.EYES][0]); |
348 | |||
342 | } | 349 | } |
343 | catch | 350 | catch |
344 | { | 351 | { |