RegionSyncServer and RegionSyncClient will not trigger RezAttachment anymore. Attachments
are synced via object sync protocol.dsg
parent
10a41ad5b5
commit
1d2a25689a
|
@ -395,7 +395,8 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
|||
|
||||
RegionSyncAvatar av = new RegionSyncAvatar(m_scene, agentID, first, last, startPos);
|
||||
m_remoteAvatars.Add(agentID, av);
|
||||
m_scene.AddNewClient(av);
|
||||
//m_scene.AddNewClient(av);
|
||||
m_scene.AddNewClient2(av, true, false);
|
||||
m_scene.TryGetScenePresence(agentID, out sp);
|
||||
if (sp == null)
|
||||
{
|
||||
|
|
|
@ -374,7 +374,8 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
|||
}
|
||||
m_syncedAvatars.Add(agentID, av);
|
||||
}
|
||||
m_scene.AddNewClient(av);
|
||||
//m_scene.AddNewClient(av);
|
||||
m_scene.AddNewClient2(av, true, false);
|
||||
RegionSyncMessage.HandleSuccess(LogHeader, msg, String.Format("Handled AddAgent for UUID {0} at {1}", agentID, startPos.ToString()));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -3008,9 +3008,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
/// <param name="client"></param>
|
||||
public override void AddNewClient(IClientAPI client)
|
||||
{
|
||||
AddNewClient2(client, true);
|
||||
//AddNewClient2(client, true);
|
||||
AddNewClient2(client, true, true);
|
||||
}
|
||||
public void AddNewClient2(IClientAPI client, bool managed)
|
||||
//public void AddNewClient2(IClientAPI client, bool managed)
|
||||
public void AddNewClient2(IClientAPI client, bool managed, bool rezAttachment)
|
||||
{
|
||||
|
||||
AgentCircuitData aCircuit = m_authenticateHandler.GetAgentCircuitData(client.CircuitCode);
|
||||
|
@ -3049,7 +3051,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (aCircuit == null || (aCircuit != null && aCircuit.child == false))
|
||||
{
|
||||
sp.IsChildAgent = false;
|
||||
Util.FireAndForget(delegate(object o) { sp.RezAttachments(); });
|
||||
if(rezAttachment)
|
||||
Util.FireAndForget(delegate(object o) { sp.RezAttachments(); });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1650,7 +1650,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
}
|
||||
else
|
||||
{
|
||||
m_log.DebugFormat("[SOP]: physics actor is null for {0} with parent {1}", UUID, this.ParentGroup.UUID);
|
||||
//m_log.DebugFormat("[SOP]: physics actor is null for {0} with parent {1}", UUID, this.ParentGroup.UUID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue