aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs34
1 files changed, 2 insertions, 32 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index fb01140..730ec31 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -216,15 +216,11 @@ namespace OpenSim.Region.Framework.Scenes
216 /// If true, we won't persist this object until it changes 216 /// If true, we won't persist this object until it changes
217 /// If false, we'll persist this object immediately 217 /// If false, we'll persist this object immediately
218 /// </param> 218 /// </param>
219 /// <param name="sendClientUpdate">
220 /// If true, we send updates to the client to tell it about this object
221 /// If false, we leave it up to the caller to do this
222 /// </param>
223 /// <returns> 219 /// <returns>
224 /// true if the object was added, false if an object with the same uuid was already in the scene 220 /// true if the object was added, false if an object with the same uuid was already in the scene
225 /// </returns> 221 /// </returns>
226 protected internal bool AddRestoredSceneObject( 222 protected internal bool AddRestoredSceneObject(
227 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates) 223 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted)
228 { 224 {
229 // KF: Check for out-of-region, move inside and make static. 225 // KF: Check for out-of-region, move inside and make static.
230 Vector3 npos = new Vector3(sceneObject.RootPart.GroupPosition.X, 226 Vector3 npos = new Vector3(sceneObject.RootPart.GroupPosition.X,
@@ -256,29 +252,8 @@ namespace OpenSim.Region.Framework.Scenes
256 sceneObject.HasGroupChanged = true; 252 sceneObject.HasGroupChanged = true;
257 } 253 }
258 254
259 return AddSceneObject(sceneObject, attachToBackup, sendClientUpdates); 255 return AddSceneObject(sceneObject, attachToBackup, true);
260 } 256 }
261
262// /// <summary>
263// /// Add an object into the scene that has come from storage
264// /// </summary>
265// /// <param name="sceneObject"></param>
266// /// <param name="attachToBackup">
267// /// If true, changes to the object will be reflected in its persisted data
268// /// If false, the persisted data will not be changed even if the object in the scene is changed
269// /// </param>
270// /// <param name="alreadyPersisted">
271// /// If true, we won't persist this object until it changes
272// /// If false, we'll persist this object immediately
273// /// </param>
274// /// <returns>
275// /// true if the object was added, false if an object with the same uuid was already in the scene
276// /// </returns>
277// protected internal bool AddRestoredSceneObject(
278// SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted)
279// {
280// AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, true);
281// }
282 257
283 /// <summary> 258 /// <summary>
284 /// Add a newly created object to the scene. This will both update the scene, and send information about the 259 /// Add a newly created object to the scene. This will both update the scene, and send information about the
@@ -672,13 +647,11 @@ namespace OpenSim.Region.Framework.Scenes
672 protected internal bool AttachObject( 647 protected internal bool AttachObject(
673 IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, Quaternion rot, Vector3 attachPos, bool silent) 648 IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, Quaternion rot, Vector3 attachPos, bool silent)
674 { 649 {
675 Console.WriteLine("HERE A");
676 SceneObjectGroup group = GetGroupByPrim(objectLocalID); 650 SceneObjectGroup group = GetGroupByPrim(objectLocalID);
677 if (group != null) 651 if (group != null)
678 { 652 {
679 if (m_parentScene.Permissions.CanTakeObject(group.UUID, remoteClient.AgentId)) 653 if (m_parentScene.Permissions.CanTakeObject(group.UUID, remoteClient.AgentId))
680 { 654 {
681 Console.WriteLine("HERE -1");
682 // If the attachment point isn't the same as the one previously used 655 // If the attachment point isn't the same as the one previously used
683 // set it's offset position = 0 so that it appears on the attachment point 656 // set it's offset position = 0 so that it appears on the attachment point
684 // and not in a weird location somewhere unknown. 657 // and not in a weird location somewhere unknown.
@@ -717,12 +690,9 @@ namespace OpenSim.Region.Framework.Scenes
717 itemId = group.GetFromItemID(); 690 itemId = group.GetFromItemID();
718 } 691 }
719 692
720 Console.WriteLine("HERE 0");
721 m_parentScene.AttachObject(remoteClient, AttachmentPt, itemId, group); 693 m_parentScene.AttachObject(remoteClient, AttachmentPt, itemId, group);
722 694
723 Console.WriteLine("HERE 1");
724 group.AttachToAgent(remoteClient.AgentId, AttachmentPt, attachPos, silent); 695 group.AttachToAgent(remoteClient.AgentId, AttachmentPt, attachPos, silent);
725 Console.WriteLine("HERE 2");
726 // In case it is later dropped again, don't let 696 // In case it is later dropped again, don't let
727 // it get cleaned up 697 // it get cleaned up
728 // 698 //