diff options
author | Melanie | 2012-12-18 09:48:12 +0000 |
---|---|---|
committer | Melanie | 2012-12-18 09:48:12 +0000 |
commit | 79bdf464d3f123f8e195fa57c497e546b7d9dfcc (patch) | |
tree | bf6123b15d1ced7ec72ce871e4801d6645bb23f4 /OpenSim/Services | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Fix locking for good (diff) | |
download | opensim-SC_OLD-79bdf464d3f123f8e195fa57c497e546b7d9dfcc.zip opensim-SC_OLD-79bdf464d3f123f8e195fa57c497e546b7d9dfcc.tar.gz opensim-SC_OLD-79bdf464d3f123f8e195fa57c497e546b7d9dfcc.tar.bz2 opensim-SC_OLD-79bdf464d3f123f8e195fa57c497e546b7d9dfcc.tar.xz |
Merge branch 'avination' into careminster
Diffstat (limited to 'OpenSim/Services')
-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 | { |