aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorlbsa712007-07-08 19:47:04 +0000
committerlbsa712007-07-08 19:47:04 +0000
commitf62b7f3d1ed0fbc1afc431a1e25c20ec8effe243 (patch)
treedabbe7b18d786929e59d3a3896dc66e7fa0f22a2 /OpenSim/Region/Environment/Scenes/ScenePresence.cs
parent* Because of svn quirkiness, this has to be a two-phase rocket (diff)
downloadopensim-SC_OLD-f62b7f3d1ed0fbc1afc431a1e25c20ec8effe243.zip
opensim-SC_OLD-f62b7f3d1ed0fbc1afc431a1e25c20ec8effe243.tar.gz
opensim-SC_OLD-f62b7f3d1ed0fbc1afc431a1e25c20ec8effe243.tar.bz2
opensim-SC_OLD-f62b7f3d1ed0fbc1afc431a1e25c20ec8effe243.tar.xz
* reverted rev 1200 waiting for info re animations.xml
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs33
1 files changed, 4 insertions, 29 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index d1e2817..14b7b2f 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -122,8 +122,6 @@ namespace OpenSim.Region.Environment.Scenes
122 } 122 }
123 123
124 Wearables = AvatarWearable.DefaultWearables; 124 Wearables = AvatarWearable.DefaultWearables;
125 Animations = new ScenePresence.AvatarAnimations();
126 Animations.LoadAnims();
127 125
128 this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); 126 this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005"));
129 127
@@ -276,26 +274,8 @@ namespace OpenSim.Region.Environment.Scenes
276 { 274 {
277 this.AddNewMovement(agent_control_v3, q); 275 this.AddNewMovement(agent_control_v3, q);
278 } 276 }
279 UpdateMovementAnimations(update_movementflag);
280 }
281
282 protected void UpdateMovementAnimations(bool update_movementflag)
283 {
284 if (update_movementflag)
285 {
286 if (movementflag != 0) {
287 if (this._physActor.Flying) {
288 this.SendAnimPack(Animations.AnimsLLUUID["FLY"], 1);
289 } else {
290 this.SendAnimPack(Animations.AnimsLLUUID["WALK"], 1);
291 }
292 } else {
293 this.SendAnimPack(Animations.AnimsLLUUID["STAND"], 1);
294 }
295 }
296
297 }
298 277
278 }
299 279
300 protected void AddNewMovement(Vector3 vec, Quaternion rotation) 280 protected void AddNewMovement(Vector3 vec, Quaternion rotation)
301 { 281 {
@@ -423,13 +403,8 @@ namespace OpenSim.Region.Environment.Scenes
423 /// <param name="seq"></param> 403 /// <param name="seq"></param>
424 public void SendAnimPack(LLUUID animID, int seq) 404 public void SendAnimPack(LLUUID animID, int seq)
425 { 405 {
426 this.current_anim = animID; 406
427 this.anim_seq = anim_seq; 407
428 List<ScenePresence> avatars = this.m_world.RequestAvatarList();
429 for (int i = 0; i < avatars.Count; i++)
430 {
431 avatars[i].ControllingClient.SendAnimation(animID, seq, this.ControllingClient.AgentId);
432 }
433 } 408 }
434 409
435 /// <summary> 410 /// <summary>
@@ -437,7 +412,7 @@ namespace OpenSim.Region.Environment.Scenes
437 /// </summary> 412 /// </summary>
438 public void SendAnimPack() 413 public void SendAnimPack()
439 { 414 {
440 this.SendAnimPack(this.current_anim, this.anim_seq); 415
441 } 416 }
442 #endregion 417 #endregion
443 418