diff options
author | UbitUmarov | 2012-03-11 03:57:59 +0000 |
---|---|---|
committer | UbitUmarov | 2012-03-11 03:57:59 +0000 |
commit | b0f01cec98c8ac97cee27f16c5f38c06f5a068b3 (patch) | |
tree | 27fe2b38ce192938a72a1d036dc7d96d55b3478e /OpenSim/Region/ClientStack | |
parent | cleanup + comments (diff) | |
parent | Merge branch 'master' of ssh://3dhosting.de/var/git/careminster (diff) | |
download | opensim-SC_OLD-b0f01cec98c8ac97cee27f16c5f38c06f5a068b3.zip opensim-SC_OLD-b0f01cec98c8ac97cee27f16c5f38c06f5a068b3.tar.gz opensim-SC_OLD-b0f01cec98c8ac97cee27f16c5f38c06f5a068b3.tar.bz2 opensim-SC_OLD-b0f01cec98c8ac97cee27f16c5f38c06f5a068b3.tar.xz |
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Region/ClientStack')
-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 7935222..4c43c10 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> |