change locking on sop updates

This commit is contained in:
UbitUmarov
2017-08-13 06:04:39 +01:00
parent e9b7971929
commit 82e2e1e00c
2 changed files with 190 additions and 173 deletions

View File

@@ -657,6 +657,9 @@ namespace OpenSim.Region.Framework.Scenes
}
}
if(!m_scene.IsRunning)
return sog;
if (root.KeyframeMotion != null)
root.KeyframeMotion.StartCrossingCheck();
@@ -3018,12 +3021,13 @@ namespace OpenSim.Region.Framework.Scenes
// If we somehow got here to updating the SOG and its root part is not scheduled for update,
// check to see if the physical position or rotation warrant an update.
/*
if (m_rootPart.UpdateFlag == UpdateRequired.NONE)
{
// rootpart SendScheduledUpdates will check if a update is needed
m_rootPart.UpdateFlag = UpdateRequired.TERSE;
}
*/
if (IsAttachment)
{
ScenePresence sp = m_scene.GetScenePresence(AttachedAvatar);