mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
reduce possible trigger of Changed.POSITION just due to noise
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user