mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user