aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Interfaces/IAvatarService.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-12-07 21:53:33 +0000
committerUbitUmarov2012-12-07 21:53:33 +0000
commitc73c2fb0707ee4dc78a354d932293f3e7e83ac50 (patch)
tree0ef3fa94ce3062df5a447f652179beed5c147502 /OpenSim/Services/Interfaces/IAvatarService.cs
parentrevert the use of avatar skeleton and use avatar size provided by viewers, (diff)
downloadopensim-SC_OLD-c73c2fb0707ee4dc78a354d932293f3e7e83ac50.zip
opensim-SC_OLD-c73c2fb0707ee4dc78a354d932293f3e7e83ac50.tar.gz
opensim-SC_OLD-c73c2fb0707ee4dc78a354d932293f3e7e83ac50.tar.bz2
opensim-SC_OLD-c73c2fb0707ee4dc78a354d932293f3e7e83ac50.tar.xz
add some default size setting and checks
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/Interfaces/IAvatarService.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Services/Interfaces/IAvatarService.cs b/OpenSim/Services/Interfaces/IAvatarService.cs
index 260e1c6..c0130f1 100644
--- a/OpenSim/Services/Interfaces/IAvatarService.cs
+++ b/OpenSim/Services/Interfaces/IAvatarService.cs
@@ -201,8 +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.SetSize(new Vector3(0.45f, 0.6f, 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 ));
205// appearance.AvatarHeight = float.Parse(Data["AvatarHeight"]); 209// appearance.AvatarHeight = float.Parse(Data["AvatarHeight"]);
210 }
206 211
207 // Legacy Wearables 212 // Legacy Wearables
208 if (Data.ContainsKey("BodyItem")) 213 if (Data.ContainsKey("BodyItem"))