aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-06-04 18:54:48 +0100
committerJustin Clark-Casey (justincc)2010-06-04 18:54:58 +0100
commitbdeda18b52f7ab37501f1751573e26e85656a4e4 (patch)
treef9b3a76e6f1e5d49f3ae2c56c269ddd9a23ae43c /OpenSim/Region/Framework/Scenes/Scene.cs
parentFix bug where prim items were not loaded in the new sqlite database handler (diff)
downloadopensim-SC-bdeda18b52f7ab37501f1751573e26e85656a4e4.zip
opensim-SC-bdeda18b52f7ab37501f1751573e26e85656a4e4.tar.gz
opensim-SC-bdeda18b52f7ab37501f1751573e26e85656a4e4.tar.bz2
opensim-SC-bdeda18b52f7ab37501f1751573e26e85656a4e4.tar.xz
Revert "commit code which stops full updates being fired multiple times when attachments cross standalone region boundaries"
This reverts commit 5074d290e4aeb583560272cadc8ba09aa8337210. This gets rid of the massive amount of scene object log spam - sorry about that, folks
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs43
1 files changed, 6 insertions, 37 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f8ca047..e8c4978 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1850,31 +1850,9 @@ namespace OpenSim.Region.Framework.Scenes
1850 /// true if the object was added, false if an object with the same uuid was already in the scene 1850 /// true if the object was added, false if an object with the same uuid was already in the scene
1851 /// </returns> 1851 /// </returns>
1852 public bool AddRestoredSceneObject( 1852 public bool AddRestoredSceneObject(
1853 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
1854 {
1855 return m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates);
1856 }
1857
1858 /// <summary>
1859 /// Add an object into the scene that has come from storage
1860 /// </summary>
1861 ///
1862 /// <param name="sceneObject"></param>
1863 /// <param name="attachToBackup">
1864 /// If true, changes to the object will be reflected in its persisted data
1865 /// If false, the persisted data will not be changed even if the object in the scene is changed
1866 /// </param>
1867 /// <param name="alreadyPersisted">
1868 /// If true, we won't persist this object until it changes
1869 /// If false, we'll persist this object immediately
1870 /// </param>
1871 /// <returns>
1872 /// true if the object was added, false if an object with the same uuid was already in the scene
1873 /// </returns>
1874 public bool AddRestoredSceneObject(
1875 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted) 1853 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted)
1876 { 1854 {
1877 return AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, true); 1855 return m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted);
1878 } 1856 }
1879 1857
1880 /// <summary> 1858 /// <summary>
@@ -2487,7 +2465,7 @@ namespace OpenSim.Region.Framework.Scenes
2487 /// <returns></returns> 2465 /// <returns></returns>
2488 public bool IncomingCreateObject(ISceneObject sog) 2466 public bool IncomingCreateObject(ISceneObject sog)
2489 { 2467 {
2490 m_log.Debug(" >>> IncomingCreateObject(sog) <<< " + ((SceneObjectGroup)sog).AbsolutePosition + " deleted? " + ((SceneObjectGroup)sog).IsDeleted); 2468 //m_log.Debug(" >>> IncomingCreateObject(sog) <<< " + ((SceneObjectGroup)sog).AbsolutePosition + " deleted? " + ((SceneObjectGroup)sog).IsDeleted);
2491 SceneObjectGroup newObject; 2469 SceneObjectGroup newObject;
2492 try 2470 try
2493 { 2471 {
@@ -2559,12 +2537,10 @@ namespace OpenSim.Region.Framework.Scenes
2559 2537
2560 if (sceneObject.IsAttachmentCheckFull()) // Attachment 2538 if (sceneObject.IsAttachmentCheckFull()) // Attachment
2561 { 2539 {
2562 m_log.DebugFormat("[SCENE]: Adding attachment {0} {1}", sceneObject.Name, sceneObject.LocalId);
2563
2564 sceneObject.RootPart.AddFlag(PrimFlags.TemporaryOnRez); 2540 sceneObject.RootPart.AddFlag(PrimFlags.TemporaryOnRez);
2565 sceneObject.RootPart.AddFlag(PrimFlags.Phantom); 2541 sceneObject.RootPart.AddFlag(PrimFlags.Phantom);
2566 2542
2567 AddRestoredSceneObject(sceneObject, false, false, false); 2543 AddRestoredSceneObject(sceneObject, false, false);
2568 2544
2569 // Handle attachment special case 2545 // Handle attachment special case
2570 SceneObjectPart RootPrim = sceneObject.RootPart; 2546 SceneObjectPart RootPrim = sceneObject.RootPart;
@@ -2572,8 +2548,6 @@ namespace OpenSim.Region.Framework.Scenes
2572 // Fix up attachment Parent Local ID 2548 // Fix up attachment Parent Local ID
2573 ScenePresence sp = GetScenePresence(sceneObject.OwnerID); 2549 ScenePresence sp = GetScenePresence(sceneObject.OwnerID);
2574 2550
2575 Console.WriteLine("AAAA");
2576
2577 //uint parentLocalID = 0; 2551 //uint parentLocalID = 0;
2578 if (sp != null) 2552 if (sp != null)
2579 { 2553 {
@@ -2592,25 +2566,20 @@ namespace OpenSim.Region.Framework.Scenes
2592 //grp.SetFromAssetID(grp.RootPart.LastOwnerID); 2566 //grp.SetFromAssetID(grp.RootPart.LastOwnerID);
2593 m_log.DebugFormat( 2567 m_log.DebugFormat(
2594 "[ATTACHMENT]: Attach to avatar {0} at position {1}", sp.UUID, grp.AbsolutePosition); 2568 "[ATTACHMENT]: Attach to avatar {0} at position {1}", sp.UUID, grp.AbsolutePosition);
2595 2569
2596 RootPrim.RemFlag(PrimFlags.TemporaryOnRez);
2597 AttachObject( 2570 AttachObject(
2598 sp.ControllingClient, grp.LocalId, (uint)0, grp.GroupRotation, grp.AbsolutePosition, false); 2571 sp.ControllingClient, grp.LocalId, (uint)0, grp.GroupRotation, grp.AbsolutePosition, false);
2599 2572 RootPrim.RemFlag(PrimFlags.TemporaryOnRez);
2600 //grp.SendGroupFullUpdate(); 2573 grp.SendGroupFullUpdate();
2601 } 2574 }
2602 else 2575 else
2603 { 2576 {
2604 RootPrim.RemFlag(PrimFlags.TemporaryOnRez); 2577 RootPrim.RemFlag(PrimFlags.TemporaryOnRez);
2605 RootPrim.AddFlag(PrimFlags.TemporaryOnRez); 2578 RootPrim.AddFlag(PrimFlags.TemporaryOnRez);
2606 } 2579 }
2607
2608 Console.WriteLine("BBBB");
2609 } 2580 }
2610 else 2581 else
2611 { 2582 {
2612 m_log.DebugFormat("[SCENE]: Adding ordinary object {0} {1}", sceneObject.Name, sceneObject.LocalId);
2613
2614 AddRestoredSceneObject(sceneObject, true, false); 2583 AddRestoredSceneObject(sceneObject, true, false);
2615 2584
2616 if (!Permissions.CanObjectEntry(sceneObject.UUID, 2585 if (!Permissions.CanObjectEntry(sceneObject.UUID,