aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs
diff options
context:
space:
mode:
authorRobert Adams2013-05-30 14:30:45 -0700
committerRobert Adams2013-05-30 19:16:34 -0700
commit48a175eff760e04f8096acd404058755d7c2919c (patch)
tree981784779349517e7b3aae0d893a840d7cd3a4a4 /OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs
parentAdd region heartbeat start event to complement heartbeat end event. (diff)
downloadopensim-SC-48a175eff760e04f8096acd404058755d7c2919c.zip
opensim-SC-48a175eff760e04f8096acd404058755d7c2919c.tar.gz
opensim-SC-48a175eff760e04f8096acd404058755d7c2919c.tar.bz2
opensim-SC-48a175eff760e04f8096acd404058755d7c2919c.tar.xz
Add methods to Animation and AnimationSet for easier manipulation and
display of groups of animations (Equal(), ToString(), FromOSDArray(), ...). No functional change to animations.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs b/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs
index c2b0468..b79dd8f 100644
--- a/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs
+++ b/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs
@@ -104,5 +104,31 @@ namespace OpenSim.Region.Framework.Scenes.Animation
104 104
105 return UUID.Zero; 105 return UUID.Zero;
106 } 106 }
107
108 /// <summary>
109 /// Get the name of the animation given a UUID. If there is no matching animation
110 /// return the UUID as a string.
111 /// </summary>
112 public static string GetDefaultAnimationName(UUID uuid)
113 {
114 string ret = "unknown";
115 if (AnimsUUID.ContainsValue(uuid))
116 {
117 foreach (KeyValuePair<string, UUID> kvp in AnimsUUID)
118 {
119 if (kvp.Value == uuid)
120 {
121 ret = kvp.Key;
122 break;
123 }
124 }
125 }
126 else
127 {
128 ret = uuid.ToString();
129 }
130
131 return ret;
132 }
107 } 133 }
108} \ No newline at end of file 134} \ No newline at end of file