aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs8
3 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 5b7a297..dfb5846 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -698,7 +698,7 @@ namespace OpenSim.Region.Framework.Scenes
698 newName = item.Name; 698 newName = item.Name;
699 } 699 }
700 700
701 if (remoteClient.AgentId == oldAgentID) 701 if (remoteClient.AgentId == oldAgentID || (LibraryService != null && LibraryService.LibraryRootFolder != null && oldAgentID == LibraryService.LibraryRootFolder.Owner))
702 { 702 {
703 CreateNewInventoryItem( 703 CreateNewInventoryItem(
704 remoteClient, item.CreatorId, item.CreatorData, newFolderID, newName, item.Flags, callbackID, asset, (sbyte)item.InvType, 704 remoteClient, item.CreatorId, item.CreatorData, newFolderID, newName, item.Flags, callbackID, asset, (sbyte)item.InvType,
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 758a2eb..0d7894f 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -802,6 +802,8 @@ namespace OpenSim.Region.Framework.Scenes
802 m_regInfo = regInfo; 802 m_regInfo = regInfo;
803 m_eventManager = new EventManager(); 803 m_eventManager = new EventManager();
804 804
805 m_permissions = new ScenePermissions(this);
806
805 m_lastUpdate = Util.EnvironmentTickCount(); 807 m_lastUpdate = Util.EnvironmentTickCount();
806 } 808 }
807 809
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 079223d..af6f89c 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2847,8 +2847,12 @@ namespace OpenSim.Region.Framework.Scenes
2847 float speed = Velocity.Length(); 2847 float speed = Velocity.Length();
2848 float velocidyDiff = Vector3.Distance(lastVelocitySentToAllClients, Velocity); 2848 float velocidyDiff = Vector3.Distance(lastVelocitySentToAllClients, Velocity);
2849 2849
2850 // assuming 5 ms. worst case precision for timer, use 2x that
2851 // for distance error threshold
2852 float distanceErrorThreshold = speed * 0.01f;
2853
2850 if (speed < 0.01f // allow rotation updates if avatar position is unchanged 2854 if (speed < 0.01f // allow rotation updates if avatar position is unchanged
2851 || Math.Abs(distanceError) > 0.25f // arbitrary distance error threshold 2855 || Math.Abs(distanceError) > distanceErrorThreshold
2852 || velocidyDiff > 0.01f) // did velocity change from last update? 2856 || velocidyDiff > 0.01f) // did velocity change from last update?
2853 { 2857 {
2854 m_perfMonMS = currentTick; 2858 m_perfMonMS = currentTick;
@@ -3568,7 +3572,7 @@ namespace OpenSim.Region.Framework.Scenes
3568 { 3572 {
3569 cAgent.AttachmentObjects = new List<ISceneObject>(); 3573 cAgent.AttachmentObjects = new List<ISceneObject>();
3570 cAgent.AttachmentObjectStates = new List<string>(); 3574 cAgent.AttachmentObjectStates = new List<string>();
3571 IScriptModule se = m_scene.RequestModuleInterface<IScriptModule>(); 3575// IScriptModule se = m_scene.RequestModuleInterface<IScriptModule>();
3572 m_InTransitScriptStates.Clear(); 3576 m_InTransitScriptStates.Clear();
3573 foreach (SceneObjectGroup sog in m_attachments) 3577 foreach (SceneObjectGroup sog in m_attachments)
3574 { 3578 {