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;