Merge branch 'prephysics' of ssh://island.sciencesim.com/home/sceneapi/sceneapi into prephysics
commit
e7e2a62641
|
@ -821,7 +821,7 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
|
|
||||||
private void DoInitialSync()
|
private void DoInitialSync()
|
||||||
{
|
{
|
||||||
m_scene.DeleteAllSceneObjects();
|
//m_scene.DeleteAllSceneObjects();
|
||||||
//KittyL: added to distinguish different actors
|
//KittyL: added to distinguish different actors
|
||||||
//Send(new RegionSyncMessage(RegionSyncMessage.MsgType.ActorType, m_actorType.ToString()));
|
//Send(new RegionSyncMessage(RegionSyncMessage.MsgType.ActorType, m_actorType.ToString()));
|
||||||
|
|
||||||
|
|
|
@ -635,18 +635,28 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
if (m_localSyncListener!=null && m_localSyncListener.IsListening)
|
if (m_localSyncListener!=null && m_localSyncListener.IsListening)
|
||||||
{
|
{
|
||||||
m_localSyncListener.Shutdown();
|
m_localSyncListener.Shutdown();
|
||||||
|
//Trigger SyncStop event, ActorSyncModules can then take actor specific action if needed.
|
||||||
|
//For instance, script engine will save script states
|
||||||
|
//save script state and stop script instances
|
||||||
|
m_scene.EventManager.TriggerOnSymmetricSyncStop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Shutdown all sync connectors
|
//Shutdown all sync connectors
|
||||||
StopAllSyncConnectors();
|
if (m_synced)
|
||||||
|
{
|
||||||
|
StopAllSyncConnectors();
|
||||||
|
m_synced = false;
|
||||||
|
|
||||||
|
//Trigger SyncStop event, ActorSyncModules can then take actor specific action if needed.
|
||||||
|
//For instance, script engine will save script states
|
||||||
|
//save script state and stop script instances
|
||||||
|
m_scene.EventManager.TriggerOnSymmetricSyncStop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Trigger SyncStop event, ActorSyncModules can then take actor specific action if needed.
|
|
||||||
//For instance, script engine will save script states
|
|
||||||
//save script state and stop script instances
|
|
||||||
m_scene.EventManager.TriggerOnSymmetricSyncStop();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue