diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 160e2df..8ad1451 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2362,9 +2362,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2362 | 2362 | ||
2363 | if (appearanceSerialized != null) | 2363 | if (appearanceSerialized != null) |
2364 | { | 2364 | { |
2365 | OSDMap appearanceOsd = (OSDMap)OSDParser.DeserializeLLSDXml(appearanceSerialized); | 2365 | try |
2366 | appearance = new AvatarAppearance(); | 2366 | { |
2367 | appearance.Unpack(appearanceOsd); | 2367 | OSDMap appearanceOsd = (OSDMap)OSDParser.DeserializeLLSDXml(appearanceSerialized); |
2368 | appearance = new AvatarAppearance(); | ||
2369 | appearance.Unpack(appearanceOsd); | ||
2370 | } | ||
2371 | catch | ||
2372 | { | ||
2373 | return UUID.Zero.ToString(); | ||
2374 | } | ||
2368 | } | 2375 | } |
2369 | } | 2376 | } |
2370 | 2377 | ||