aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2010-08-09 00:49:40 +0100
committerMelanie2010-08-09 00:49:40 +0100
commitb0795bcfefe1b5cc0003e6a1bf7c808c06a1a85a (patch)
treede46b55aa9208ca990b7510ae0563eefbc4a8689 /OpenSim/Region/Framework
parentMerge branch 'master' into careminster-presence-refactor (diff)
parentPrint a console message when we deny access because of no valid parcel found. (diff)
downloadopensim-SC-b0795bcfefe1b5cc0003e6a1bf7c808c06a1a85a.zip
opensim-SC-b0795bcfefe1b5cc0003e6a1bf7c808c06a1a85a.tar.gz
opensim-SC-b0795bcfefe1b5cc0003e6a1bf7c808c06a1a85a.tar.bz2
opensim-SC-b0795bcfefe1b5cc0003e6a1bf7c808c06a1a85a.tar.xz
Merge branch 'careminster-presence-refactor' of ssh://melanie@3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs23
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs23
2 files changed, 23 insertions, 23 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 6c17be8..779f898 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2592,6 +2592,12 @@ namespace OpenSim.Region.Framework.Scenes
2592 /// <returns>True if the SceneObjectGroup was added, False if it was not</returns> 2592 /// <returns>True if the SceneObjectGroup was added, False if it was not</returns>
2593 public bool AddSceneObject(SceneObjectGroup sceneObject) 2593 public bool AddSceneObject(SceneObjectGroup sceneObject)
2594 { 2594 {
2595 if (sceneObject.OwnerID == UUID.Zero)
2596 {
2597 m_log.ErrorFormat("[SCENE]: Owner ID for {0} was zero", sceneObject.UUID);
2598 return false;
2599 }
2600
2595 // If the user is banned, we won't let any of their objects 2601 // If the user is banned, we won't let any of their objects
2596 // enter. Period. 2602 // enter. Period.
2597 // 2603 //
@@ -2641,15 +2647,27 @@ namespace OpenSim.Region.Framework.Scenes
2641 if (AttachmentsModule != null) 2647 if (AttachmentsModule != null)
2642 AttachmentsModule.AttachObject(sp.ControllingClient, grp, 0, false); 2648 AttachmentsModule.AttachObject(sp.ControllingClient, grp, 0, false);
2643 2649
2650 m_log.DebugFormat("[SCENE]: Attachment {0} arrived and scene presence was found, attaching", sceneObject.UUID);
2644 } 2651 }
2645 else 2652 else
2646 { 2653 {
2654 m_log.DebugFormat("[SCENE]: Attachment {0} arrived and scene presence was not found, setting to temp", sceneObject.UUID);
2647 RootPrim.RemFlag(PrimFlags.TemporaryOnRez); 2655 RootPrim.RemFlag(PrimFlags.TemporaryOnRez);
2648 RootPrim.AddFlag(PrimFlags.TemporaryOnRez); 2656 RootPrim.AddFlag(PrimFlags.TemporaryOnRez);
2649 } 2657 }
2658 if (sceneObject.OwnerID == UUID.Zero)
2659 {
2660 m_log.ErrorFormat("[SCENE]: Owner ID for {0} was zero after attachment processing. BUG!", sceneObject.UUID);
2661 return false;
2662 }
2650 } 2663 }
2651 else 2664 else
2652 { 2665 {
2666 if (sceneObject.OwnerID == UUID.Zero)
2667 {
2668 m_log.ErrorFormat("[SCENE]: Owner ID for non-attachment {0} was zero", sceneObject.UUID);
2669 return false;
2670 }
2653 AddRestoredSceneObject(sceneObject, true, false); 2671 AddRestoredSceneObject(sceneObject, true, false);
2654 2672
2655 if (!Permissions.CanObjectEntry(sceneObject.UUID, 2673 if (!Permissions.CanObjectEntry(sceneObject.UUID,
@@ -3495,7 +3513,8 @@ namespace OpenSim.Region.Framework.Scenes
3495 if (tp == TeleportFlags.ViaLogin) 3513 if (tp == TeleportFlags.ViaLogin)
3496 { 3514 {
3497 if (land != null && !TestLandRestrictions(agent, land, out reason)) 3515 if (land != null && !TestLandRestrictions(agent, land, out reason))
3498 { 3516 {
3517 m_log.DebugFormat("[CONNECTION BEGIN]: Denying access to {0} due to no land access", agent.AgentID.ToString());
3499 return false; 3518 return false;
3500 } 3519 }
3501 } 3520 }
@@ -5333,4 +5352,4 @@ namespace OpenSim.Region.Framework.Scenes
5333 return offsets.ToArray(); 5352 return offsets.ToArray();
5334 } 5353 }
5335 } 5354 }
5336} \ No newline at end of file 5355}
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 5acc227..94ec534 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -228,27 +228,8 @@ namespace OpenSim.Region.Framework.Scenes
228 if (sp.IsChildAgent) 228 if (sp.IsChildAgent)
229 return; 229 return;
230 230
231 if (sp.ParentID != 0) 231 coarseLocations.Add(sp.AbsolutePosition);
232 { 232 avatarUUIDs.Add(sp.UUID);
233 // sitting avatar
234 SceneObjectPart sop = m_parentScene.GetSceneObjectPart(sp.ParentID);
235 if (sop != null)
236 {
237 coarseLocations.Add(sop.AbsolutePosition + sp.AbsolutePosition);
238 avatarUUIDs.Add(sp.UUID);
239 }
240 else
241 {
242 // we can't find the parent.. ! arg!
243 coarseLocations.Add(sp.AbsolutePosition);
244 avatarUUIDs.Add(sp.UUID);
245 }
246 }
247 else
248 {
249 coarseLocations.Add(sp.AbsolutePosition);
250 avatarUUIDs.Add(sp.UUID);
251 }
252 } 233 }
253 } 234 }
254 235