aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authordiva2009-02-18 01:49:18 +0000
committerdiva2009-02-18 01:49:18 +0000
commit3f25128e77af2a53e765436454b8fddeb8f88894 (patch)
tree461d17a9e357e262a08583789617749986978881 /OpenSim/Framework
parentMakes SP.CopyFrom a bit more robust with respect to sims in older versions wh... (diff)
downloadopensim-SC_OLD-3f25128e77af2a53e765436454b8fddeb8f88894.zip
opensim-SC_OLD-3f25128e77af2a53e765436454b8fddeb8f88894.tar.gz
opensim-SC_OLD-3f25128e77af2a53e765436454b8fddeb8f88894.tar.bz2
opensim-SC_OLD-3f25128e77af2a53e765436454b8fddeb8f88894.tar.xz
Adds support for preserving animations on region crossings and TPs.
Known issue: after TP, the self client doesn't see the animations going, but others can see them. So there's a bug there (TPs only, crossings seem to be all fine). Untested: did not test animation overriders; only tested playing animations from the viewer.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/ChildAgentDataUpdate.cs58
1 files changed, 30 insertions, 28 deletions
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs
index 0e72e47..6752412 100644
--- a/OpenSim/Framework/ChildAgentDataUpdate.cs
+++ b/OpenSim/Framework/ChildAgentDataUpdate.cs
@@ -54,36 +54,37 @@ namespace OpenSim.Framework
54 { 54 {
55 } 55 }
56 56
57 public ChildAgentDataUpdate(AgentData agent) 57 //public ChildAgentDataUpdate(AgentData agent)
58 { 58 //{
59 ActiveGroupID = agent.ActiveGroupID.Guid; 59 // ActiveGroupID = agent.ActiveGroupID.Guid;
60 AgentID = agent.AgentID.Guid; 60 // AgentID = agent.AgentID.Guid;
61 alwaysrun = agent.AlwaysRun; 61 // alwaysrun = agent.AlwaysRun;
62 AVHeight = agent.Size.Z; 62 // AVHeight = agent.Size.Z;
63 cameraPosition = new sLLVector3(agent.Center); 63 // cameraPosition = new sLLVector3(agent.Center);
64 drawdistance = agent.Far; 64 // drawdistance = agent.Far;
65 godlevel = (float)agent.GodLevel; 65 // godlevel = (float)agent.GodLevel;
66 if (agent.Groups.Length > 0) 66 // if (agent.Groups.Length > 0)
67 GroupAccess = (uint)agent.Groups[0].GroupPowers; 67 // GroupAccess = (uint)agent.Groups[0].GroupPowers;
68 Position = new sLLVector3(agent.Position); 68 // Position = new sLLVector3(agent.Position);
69 regionHandle = agent.RegionHandle; 69 // regionHandle = agent.RegionHandle;
70 throttles = agent.Throttles; 70 // throttles = agent.Throttles;
71 Velocity = new sLLVector3(agent.Velocity); 71 // Velocity = new sLLVector3(agent.Velocity);
72 } 72 //}
73 73
74 public ChildAgentDataUpdate(AgentPosition agent) 74 //public ChildAgentDataUpdate(AgentPosition agent)
75 { 75 //{
76 AgentID = agent.AgentID.Guid; 76 // AgentID = agent.AgentID.Guid;
77 AVHeight = agent.Size.Z; 77 // AVHeight = agent.Size.Z;
78 cameraPosition = new sLLVector3(agent.Center); 78 // cameraPosition = new sLLVector3(agent.Center);
79 drawdistance = agent.Far; 79 // drawdistance = agent.Far;
80 Position = new sLLVector3(agent.Position); 80 // Position = new sLLVector3(agent.Position);
81 regionHandle = agent.RegionHandle; 81 // regionHandle = agent.RegionHandle;
82 throttles = agent.Throttles; 82 // throttles = agent.Throttles;
83 Velocity = new sLLVector3(agent.Velocity); 83 // Velocity = new sLLVector3(agent.Velocity);
84 } 84 //}
85 } 85 }
86 86
87 /*
87 public interface IAgentData 88 public interface IAgentData
88 { 89 {
89 UUID AgentID { get; set; } 90 UUID AgentID { get; set; }
@@ -581,5 +582,6 @@ namespace OpenSim.Framework
581 System.Console.WriteLine("Position: " + Position); 582 System.Console.WriteLine("Position: " + Position);
582 } 583 }
583 } 584 }
585 */
584 586
585} 587}