diff options
author | UbitUmarov | 2018-12-31 16:58:44 +0000 |
---|---|---|
committer | UbitUmarov | 2018-12-31 16:58:44 +0000 |
commit | 813fda90dabacc11d78bfbeb50b9e5cef79b1877 (patch) | |
tree | 0a39a899c6b92e4a9a34dcb531001148bc2d568a /OpenSim/Region | |
parent | lost in updates (diff) | |
download | opensim-SC-813fda90dabacc11d78bfbeb50b9e5cef79b1877.zip opensim-SC-813fda90dabacc11d78bfbeb50b9e5cef79b1877.tar.gz opensim-SC-813fda90dabacc11d78bfbeb50b9e5cef79b1877.tar.bz2 opensim-SC-813fda90dabacc11d78bfbeb50b9e5cef79b1877.tar.xz |
temporary HACK to not kill some viewers
Diffstat (limited to 'OpenSim/Region')
4 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index cbe2324..7866997 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -344,13 +344,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
344 | private Prioritizer m_prioritizer; | 344 | private Prioritizer m_prioritizer; |
345 | private bool m_disableFacelights; | 345 | private bool m_disableFacelights; |
346 | 346 | ||
347 | // needs optimazation | 347 | // needs optimization |
348 | private HashSet<SceneObjectGroup> GroupsInView = new HashSet<SceneObjectGroup>(); | 348 | private HashSet<SceneObjectGroup> GroupsInView = new HashSet<SceneObjectGroup>(); |
349 | #pragma warning disable 0414 | 349 | #pragma warning disable 0414 |
350 | private bool m_VelocityInterpolate; | 350 | private bool m_VelocityInterpolate; |
351 | #pragma warning restore 0414 | 351 | #pragma warning restore 0414 |
352 | private const uint MaxTransferBytesPerPacket = 600; | 352 | private const uint MaxTransferBytesPerPacket = 600; |
353 | 353 | ||
354 | public bool DoObjectAnimations { get; set; } | ||
355 | |||
354 | /// <value> | 356 | /// <value> |
355 | /// Maintain a record of all the objects killed. This allows us to stop an update being sent from the | 357 | /// Maintain a record of all the objects killed. This allows us to stop an update being sent from the |
356 | /// thread servicing the m_primFullUpdates queue after a kill. If this happens the object persists as an | 358 | /// thread servicing the m_primFullUpdates queue after a kill. If this happens the object persists as an |
@@ -3915,6 +3917,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3915 | public void SendObjectAnimations(UUID[] animations, int[] seqs, UUID senderId) | 3917 | public void SendObjectAnimations(UUID[] animations, int[] seqs, UUID senderId) |
3916 | { | 3918 | { |
3917 | // m_log.DebugFormat("[LLCLIENTVIEW]: Sending Object animations for {0} to {1}", sourceAgentId, Name); | 3919 | // m_log.DebugFormat("[LLCLIENTVIEW]: Sending Object animations for {0} to {1}", sourceAgentId, Name); |
3920 | if(!DoObjectAnimations) | ||
3921 | return; | ||
3918 | 3922 | ||
3919 | ObjectAnimationPacket ani = (ObjectAnimationPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAnimation); | 3923 | ObjectAnimationPacket ani = (ObjectAnimationPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAnimation); |
3920 | // TODO: don't create new blocks if recycling an old packet | 3924 | // TODO: don't create new blocks if recycling an old packet |
@@ -4326,10 +4330,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4326 | 4330 | ||
4327 | if (update.Entity is SceneObjectPart) | 4331 | if (update.Entity is SceneObjectPart) |
4328 | { | 4332 | { |
4329 | if (updateFlags.HasFlag(PrimUpdateFlags.Animations)) | 4333 | if (DoObjectAnimations && updateFlags.HasFlag(PrimUpdateFlags.Animations)) |
4330 | { | 4334 | { |
4331 | SceneObjectPart sop = (SceneObjectPart)update.Entity; | 4335 | SceneObjectPart sop = (SceneObjectPart)update.Entity; |
4332 | if (sop.Animations != null) | 4336 | if ( sop.Animations != null) |
4333 | { | 4337 | { |
4334 | ObjectAnimationUpdates.Value.Add(sop); | 4338 | ObjectAnimationUpdates.Value.Add(sop); |
4335 | maxUpdatesBytes -= 32 * sop.Animations.Count + 16; | 4339 | maxUpdatesBytes -= 32 * sop.Animations.Count + 16; |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 79ad0e0..a8d2f84 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3111,6 +3111,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
3111 | 3111 | ||
3112 | m_LastLogin = Util.EnvironmentTickCount(); | 3112 | m_LastLogin = Util.EnvironmentTickCount(); |
3113 | 3113 | ||
3114 | //HACK only send object animations to fs beta for now | ||
3115 | string viewername = Util.GetViewerName(aCircuit); | ||
3116 | if(sp != null && viewername.StartsWith("Firestorm-Betax64 6")) | ||
3117 | { | ||
3118 | sp.ControllingClient.DoObjectAnimations = true; | ||
3119 | } | ||
3114 | return sp; | 3120 | return sp; |
3115 | } | 3121 | } |
3116 | 3122 | ||
@@ -4190,7 +4196,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
4190 | return false; | 4196 | return false; |
4191 | } | 4197 | } |
4192 | } | 4198 | } |
4193 | |||
4194 | return true; | 4199 | return true; |
4195 | } | 4200 | } |
4196 | 4201 | ||
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index cfb730c..5962495 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -60,6 +60,8 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
60 | 60 | ||
61 | public int PingTimeMS { get { return 0; } } | 61 | public int PingTimeMS { get { return 0; } } |
62 | 62 | ||
63 | public bool DoObjectAnimations { get; set; } | ||
64 | |||
63 | private string m_username; | 65 | private string m_username; |
64 | private string m_nick; | 66 | private string m_nick; |
65 | 67 | ||
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index f975f74..cbb7e60 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -73,6 +73,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
73 | private UUID m_profileImage = UUID.Zero; | 73 | private UUID m_profileImage = UUID.Zero; |
74 | private string m_born; | 74 | private string m_born; |
75 | public List<uint> SelectedObjects {get; private set;} | 75 | public List<uint> SelectedObjects {get; private set;} |
76 | public bool DoObjectAnimations { get; set; } | ||
76 | 77 | ||
77 | public NPCAvatar( | 78 | public NPCAvatar( |
78 | string firstname, string lastname, Vector3 position, UUID ownerID, bool senseAsAgent, Scene scene) | 79 | string firstname, string lastname, Vector3 position, UUID ownerID, bool senseAsAgent, Scene scene) |