reduce possible trigger of Changed.POSITION just due to noise

This commit is contained in:
UbitUmarov
2023-02-01 18:45:11 +00:00
parent 5ac93aaf2f
commit a9cc7594e2
2 changed files with 4 additions and 4 deletions

View File

@@ -665,7 +665,7 @@ namespace OpenSim.Region.Framework.Scenes
if (m_dupeInProgress || IsDeleted)
triggerScriptEvent = false;
else
triggerScriptEvent = m_rootPart.GroupPosition != val;
triggerScriptEvent = !m_rootPart.GroupPosition.ApproxEquals(val, 1e-3f);
m_rootPart.GroupPosition = val;

View File

@@ -144,8 +144,8 @@ namespace OpenSim.Services.HypergridService
public bool IncomingInstantMessage(GridInstantMessage im)
{
// m_log.DebugFormat("[HG IM SERVICE]: Received message from {0} to {1}", im.fromAgentID, im.toAgentID);
// UUID toAgentID = new UUID(im.toAgentID);
//m_log.DebugFormat("[HG IM SERVICE]: Received message from {0} to {1}", im.fromAgentID, im.toAgentID);
//UUID toAgentID = new UUID(im.toAgentID);
bool success = false;
if (m_IMSimConnector != null)
@@ -166,7 +166,7 @@ namespace OpenSim.Services.HypergridService
public bool OutgoingInstantMessage(GridInstantMessage im, string url, bool foreigner)
{
// m_log.DebugFormat("[HG IM SERVICE]: Sending message from {0} to {1}@{2}", im.fromAgentID, im.toAgentID, url);
//m_log.DebugFormat("[HG IM SERVICE]: Sending message from {0} to {1}@{2}", im.fromAgentID, im.toAgentID, url);
return TrySendInstantMessage(im, url, true, foreigner);
}