Fixed a problem with PhysEngineToSceneConnectorModule.cs disabling regionsync when physics syncing is disabled.

dsg
Dan Lake 2011-01-07 08:27:06 -08:00
parent 046ec22924
commit 9d7fd472c0
2 changed files with 5 additions and 6 deletions

View File

@ -91,11 +91,11 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
&& syncConfig.GetBoolean("PhysEngineClient", false)
)
{
scene.RegionSyncEnabled = true;
//scene.RegionSyncEnabled = true;
}
else
{
scene.RegionSyncEnabled = false;
//scene.RegionSyncEnabled = false;
m_log.Warn(LogHeader + ": Not in physics engine client mode. Shutting down.");
return;
}

View File

@ -469,6 +469,7 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
return;
}
// m_log.WarnFormat("{0}: UpdatedAvatar JSON: {1}", LogHeader(), data.ToString());
// Find the presence in the scene and error check
ScenePresence presence;
m_scene.TryGetScenePresence(agentID, out presence);
@ -558,13 +559,11 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
{
m_log.ErrorFormat("{0} Caught exception in UpdatedAvatar handler (TrySetMovementAnimation): {1}", LogHeader(), e.Message);
}
/*
* result = String.Format("Avatar \"{0}\" ({1}) ({2}) updated (pos:{3}, vel:{4}, rot:{5}, fly:{6})",
string result = String.Format("Avatar \"{0}\" ({1}) ({2}) updated (pos:{3}, vel:{4}, rot:{5}, fly:{6})",
presence.Name, presence.UUID.ToString(), presence.LocalId.ToString(),
presence.AbsolutePosition.ToString(), presence.Velocity.ToString(),
presence.Rotation.ToString(), presence.PhysicsActor.Flying ? "Y" : "N");
HandleSuccess(msg, result);
* */
// RegionSyncMessage.HandleSuccess(LogHeader(), msg, result);
return;
}
case RegionSyncMessage.MsgType.RemovedAvatar: