diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6811546..fe9b1bb 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1905,7 +1905,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1905 | // Resume scripts this possible should also be moved down after sending the avatar to viewer ? | 1905 | // Resume scripts this possible should also be moved down after sending the avatar to viewer ? |
1906 | foreach (SceneObjectGroup sog in attachments) | 1906 | foreach (SceneObjectGroup sog in attachments) |
1907 | { | 1907 | { |
1908 | sog.ScheduleGroupForFullUpdate(); | 1908 | // sog.ScheduleGroupForFullUpdate(); |
1909 | m_scene.ForEachScenePresence(delegate(ScenePresence p) | ||
1910 | { | ||
1911 | if (ParcelHideThisAvatar && currentParcelUUID != p.currentParcelUUID && p.GodLevel < 200) | ||
1912 | return; | ||
1913 | sog.SendFullUpdateToClient(p.ControllingClient); | ||
1914 | p.ControllingClient.SendAvatarDataImmediate(this); // resend our data -> test | ||
1915 | }); | ||
1916 | |||
1909 | sog.RootPart.ParentGroup.CreateScriptInstances(0, false, m_scene.DefaultScriptEngine, GetStateSource()); | 1917 | sog.RootPart.ParentGroup.CreateScriptInstances(0, false, m_scene.DefaultScriptEngine, GetStateSource()); |
1910 | sog.ResumeScripts(); | 1918 | sog.ResumeScripts(); |
1911 | } | 1919 | } |