*test* send attachments in sync, resend avatar at end

avinationmerge
UbitUmarov 2014-08-19 02:15:01 +01:00
parent ffcc1d7fa2
commit e77fafe12d
1 changed files with 9 additions and 1 deletions

View File

@ -1905,7 +1905,15 @@ namespace OpenSim.Region.Framework.Scenes
// Resume scripts this possible should also be moved down after sending the avatar to viewer ?
foreach (SceneObjectGroup sog in attachments)
{
sog.ScheduleGroupForFullUpdate();
// sog.ScheduleGroupForFullUpdate();
m_scene.ForEachScenePresence(delegate(ScenePresence p)
{
if (ParcelHideThisAvatar && currentParcelUUID != p.currentParcelUUID && p.GodLevel < 200)
return;
sog.SendFullUpdateToClient(p.ControllingClient);
p.ControllingClient.SendAvatarDataImmediate(this); // resend our data -> test
});
sog.RootPart.ParentGroup.CreateScriptInstances(0, false, m_scene.DefaultScriptEngine, GetStateSource());
sog.ResumeScripts();
}