diff options
author | Diva Canto | 2013-06-12 17:48:48 -0700 |
---|---|---|
committer | Diva Canto | 2013-06-12 17:48:48 -0700 |
commit | b27121708490f0a6107a3e717e0cbe7792dfaaaf (patch) | |
tree | 0d1c3d204dc08b08c586d2a9567fbcf834944c51 /OpenSim/Region/Framework/Scenes | |
parent | DataSnapshot: changed those annoying messages to Debug instead of Info. (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-b27121708490f0a6107a3e717e0cbe7792dfaaaf.zip opensim-SC-b27121708490f0a6107a3e717e0cbe7792dfaaaf.tar.gz opensim-SC-b27121708490f0a6107a3e717e0cbe7792dfaaaf.tar.bz2 opensim-SC-b27121708490f0a6107a3e717e0cbe7792dfaaaf.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
4 files changed, 14 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/AnimationSet.cs b/OpenSim/Region/Framework/Scenes/Animation/AnimationSet.cs index 5dee64d..b7400ea 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/AnimationSet.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/AnimationSet.cs | |||
@@ -312,18 +312,22 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
312 | buff.Append("dflt="); | 312 | buff.Append("dflt="); |
313 | buff.Append(DefaultAnimation.ToString()); | 313 | buff.Append(DefaultAnimation.ToString()); |
314 | buff.Append(",iDflt="); | 314 | buff.Append(",iDflt="); |
315 | if (DefaultAnimation == ImplicitDefaultAnimation) | 315 | if (DefaultAnimation.Equals(ImplicitDefaultAnimation)) |
316 | buff.Append("same"); | 316 | buff.Append("same"); |
317 | else | 317 | else |
318 | buff.Append(ImplicitDefaultAnimation.ToString()); | 318 | buff.Append(ImplicitDefaultAnimation.ToString()); |
319 | if (m_animations.Count > 0) | 319 | if (m_animations.Count > 0) |
320 | { | 320 | { |
321 | buff.Append(",anims="); | 321 | buff.Append(",anims="); |
322 | bool firstTime = true; | ||
322 | foreach (OpenSim.Framework.Animation anim in m_animations) | 323 | foreach (OpenSim.Framework.Animation anim in m_animations) |
323 | { | 324 | { |
325 | if (!firstTime) | ||
326 | buff.Append(","); | ||
324 | buff.Append("<"); | 327 | buff.Append("<"); |
325 | buff.Append(anim.ToString()); | 328 | buff.Append(anim.ToString()); |
326 | buff.Append(">,"); | 329 | buff.Append(">"); |
330 | firstTime = false; | ||
327 | } | 331 | } |
328 | } | 332 | } |
329 | return buff.ToString(); | 333 | return buff.ToString(); |
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs index a701a79..3b5a5bd 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | |||
@@ -94,6 +94,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
94 | if (m_animations.Add(animID, m_scenePresence.ControllingClient.NextAnimationSequenceNumber, objectID)) | 94 | if (m_animations.Add(animID, m_scenePresence.ControllingClient.NextAnimationSequenceNumber, objectID)) |
95 | { | 95 | { |
96 | SendAnimPack(); | 96 | SendAnimPack(); |
97 | m_scenePresence.TriggerScenePresenceUpdated(); | ||
97 | } | 98 | } |
98 | } | 99 | } |
99 | 100 | ||
@@ -135,6 +136,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
135 | if (m_animations.Remove(animID, allowNoDefault)) | 136 | if (m_animations.Remove(animID, allowNoDefault)) |
136 | { | 137 | { |
137 | SendAnimPack(); | 138 | SendAnimPack(); |
139 | m_scenePresence.TriggerScenePresenceUpdated(); | ||
138 | } | 140 | } |
139 | } | 141 | } |
140 | 142 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index da80e4f..7b5fdcb 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -763,6 +763,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
763 | for (int i = 0; i < parts.Length; i++) | 763 | for (int i = 0; i < parts.Length; i++) |
764 | { | 764 | { |
765 | SceneObjectPart part = parts[i]; | 765 | SceneObjectPart part = parts[i]; |
766 | if (part.KeyframeMotion != null) | ||
767 | { | ||
768 | part.KeyframeMotion.UpdateSceneObject(this); | ||
769 | } | ||
770 | |||
766 | if (Object.ReferenceEquals(part, m_rootPart)) | 771 | if (Object.ReferenceEquals(part, m_rootPart)) |
767 | continue; | 772 | continue; |
768 | 773 | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index bab14dd..774546c 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -77,7 +77,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
77 | // m_log.DebugFormat("[SCENE PRESENCE]: Destructor called on {0}", Name); | 77 | // m_log.DebugFormat("[SCENE PRESENCE]: Destructor called on {0}", Name); |
78 | // } | 78 | // } |
79 | 79 | ||
80 | private void TriggerScenePresenceUpdated() | 80 | public void TriggerScenePresenceUpdated() |
81 | { | 81 | { |
82 | if (m_scene != null) | 82 | if (m_scene != null) |
83 | m_scene.EventManager.TriggerScenePresenceUpdated(this); | 83 | m_scene.EventManager.TriggerScenePresenceUpdated(this); |