diff options
author | Melanie | 2012-03-11 01:55:36 +0100 |
---|---|---|
committer | Melanie | 2012-03-11 01:55:36 +0100 |
commit | 4f7ec1d691d769b9486c841c008e10aef164998f (patch) | |
tree | 443bd31819ac133d9878c0d906d250cad52e3831 /OpenSim/Region/ClientStack/Linden | |
parent | Merge branch 'ubitwork' (diff) | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC_OLD-4f7ec1d691d769b9486c841c008e10aef164998f.zip opensim-SC_OLD-4f7ec1d691d769b9486c841c008e10aef164998f.tar.gz opensim-SC_OLD-4f7ec1d691d769b9486c841c008e10aef164998f.tar.bz2 opensim-SC_OLD-4f7ec1d691d769b9486c841c008e10aef164998f.tar.xz |
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 7d51323..fcca1bc 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -320,7 +320,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
320 | protected readonly UUID m_agentId; | 320 | protected readonly UUID m_agentId; |
321 | private readonly uint m_circuitCode; | 321 | private readonly uint m_circuitCode; |
322 | private readonly byte[] m_channelVersion = Utils.EmptyBytes; | 322 | private readonly byte[] m_channelVersion = Utils.EmptyBytes; |
323 | private readonly Dictionary<string, UUID> m_defaultAnimations = new Dictionary<string, UUID>(); | ||
324 | private readonly IGroupsModule m_GroupsModule; | 323 | private readonly IGroupsModule m_GroupsModule; |
325 | 324 | ||
326 | private int m_cachedTextureSerial; | 325 | private int m_cachedTextureSerial; |
@@ -464,10 +463,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
464 | RegisterInterface<IClientChat>(this); | 463 | RegisterInterface<IClientChat>(this); |
465 | RegisterInterface<IClientIPEndpoint>(this); | 464 | RegisterInterface<IClientIPEndpoint>(this); |
466 | 465 | ||
467 | InitDefaultAnimations(); | ||
468 | |||
469 | m_scene = scene; | 466 | m_scene = scene; |
470 | |||
471 | m_entityUpdates = new PriorityQueue(m_scene.Entities.Count); | 467 | m_entityUpdates = new PriorityQueue(m_scene.Entities.Count); |
472 | m_entityProps = new PriorityQueue(m_scene.Entities.Count); | 468 | m_entityProps = new PriorityQueue(m_scene.Entities.Count); |
473 | m_fullUpdateDataBlocksBuilder = new List<ObjectUpdatePacket.ObjectDataBlock>(); | 469 | m_fullUpdateDataBlocksBuilder = new List<ObjectUpdatePacket.ObjectDataBlock>(); |
@@ -11374,30 +11370,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11374 | OutPacket(scriptQuestion, ThrottleOutPacketType.Task); | 11370 | OutPacket(scriptQuestion, ThrottleOutPacketType.Task); |
11375 | } | 11371 | } |
11376 | 11372 | ||
11377 | private void InitDefaultAnimations() | ||
11378 | { | ||
11379 | using (XmlTextReader reader = new XmlTextReader("data/avataranimations.xml")) | ||
11380 | { | ||
11381 | XmlDocument doc = new XmlDocument(); | ||
11382 | doc.Load(reader); | ||
11383 | if (doc.DocumentElement != null) | ||
11384 | foreach (XmlNode nod in doc.DocumentElement.ChildNodes) | ||
11385 | { | ||
11386 | if (nod.Attributes["name"] != null) | ||
11387 | { | ||
11388 | string name = nod.Attributes["name"].Value.ToLower(); | ||
11389 | string id = nod.InnerText; | ||
11390 | m_defaultAnimations.Add(name, (UUID)id); | ||
11391 | } | ||
11392 | } | ||
11393 | } | ||
11394 | } | ||
11395 | |||
11396 | public UUID GetDefaultAnimation(string name) | 11373 | public UUID GetDefaultAnimation(string name) |
11397 | { | 11374 | { |
11398 | if (m_defaultAnimations.ContainsKey(name)) | 11375 | return SLUtil.GetDefaultAvatarAnimation(name); |
11399 | return m_defaultAnimations[name]; | ||
11400 | return UUID.Zero; | ||
11401 | } | 11376 | } |
11402 | 11377 | ||
11403 | /// <summary> | 11378 | /// <summary> |