diff options
author | UbitUmarov | 2014-08-23 22:24:28 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-23 22:24:28 +0100 |
commit | 06b6238d007123d23f394f38b44f0aced997269e (patch) | |
tree | 265192b44845e92ec5156e12c7103ed8c64c5ac7 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | on updates, send rotations using livomv Quaternion.toBytes() again (diff) | |
download | opensim-SC_OLD-06b6238d007123d23f394f38b44f0aced997269e.zip opensim-SC_OLD-06b6238d007123d23f394f38b44f0aced997269e.tar.gz opensim-SC_OLD-06b6238d007123d23f394f38b44f0aced997269e.tar.bz2 opensim-SC_OLD-06b6238d007123d23f394f38b44f0aced997269e.tar.xz |
send avatar kills after attachments, send otherattachments before rest of
sog ( updates will mess this again but well... )
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 4632402..f0ea0ba 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3521,7 +3521,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3521 | EntityBase[] entities = Scene.Entities.GetEntities(); | 3521 | EntityBase[] entities = Scene.Entities.GetEntities(); |
3522 | foreach (EntityBase e in entities) | 3522 | foreach (EntityBase e in entities) |
3523 | { | 3523 | { |
3524 | if (e != null && e is SceneObjectGroup) | 3524 | if (e != null && e is SceneObjectGroup && !((SceneObjectGroup)e).IsAttachment) |
3525 | ((SceneObjectGroup)e).SendFullUpdateToClient(ControllingClient); | 3525 | ((SceneObjectGroup)e).SendFullUpdateToClient(ControllingClient); |
3526 | } | 3526 | } |
3527 | }); | 3527 | }); |
@@ -3596,7 +3596,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3596 | p.SendAvatarDataToAgentNF(this); | 3596 | p.SendAvatarDataToAgentNF(this); |
3597 | p.SendAppearanceToAgentNF(this); | 3597 | p.SendAppearanceToAgentNF(this); |
3598 | p.SendAnimPackToAgentNF(this); | 3598 | p.SendAnimPackToAgentNF(this); |
3599 | // for now attachments are sent with all SOG | 3599 | p.SendAttachmentsToAgentNF(this); |
3600 | count++; | 3600 | count++; |
3601 | }); | 3601 | }); |
3602 | 3602 | ||
@@ -5969,9 +5969,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
5969 | public void SendKillTo(ScenePresence p) | 5969 | public void SendKillTo(ScenePresence p) |
5970 | { | 5970 | { |
5971 | List<uint> ids = new List<uint>(m_attachments.Count + 1); | 5971 | List<uint> ids = new List<uint>(m_attachments.Count + 1); |
5972 | ids.Add(LocalId); | ||
5973 | foreach (SceneObjectGroup sog in m_attachments) | 5972 | foreach (SceneObjectGroup sog in m_attachments) |
5974 | ids.Add(sog.RootPart.LocalId); | 5973 | ids.Add(sog.RootPart.LocalId); |
5974 | |||
5975 | ids.Add(LocalId); | ||
5975 | p.ControllingClient.SendKillObject(ids); | 5976 | p.ControllingClient.SendKillObject(ids); |
5976 | } | 5977 | } |
5977 | 5978 | ||