aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-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 fa3c5eb..59a2f41 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 if (!alreadyPersisted) 225 if (!alreadyPersisted)
230 { 226 {
@@ -232,29 +228,8 @@ namespace OpenSim.Region.Framework.Scenes
232 sceneObject.HasGroupChanged = true; 228 sceneObject.HasGroupChanged = true;
233 } 229 }
234 230
235 return AddSceneObject(sceneObject, attachToBackup, sendClientUpdates); 231 return AddSceneObject(sceneObject, attachToBackup, true);
236 } 232 }
237
238// /// <summary>
239// /// Add an object into the scene that has come from storage
240// /// </summary>
241// /// <param name="sceneObject"></param>
242// /// <param name="attachToBackup">
243// /// If true, changes to the object will be reflected in its persisted data
244// /// If false, the persisted data will not be changed even if the object in the scene is changed
245// /// </param>
246// /// <param name="alreadyPersisted">
247// /// If true, we won't persist this object until it changes
248// /// If false, we'll persist this object immediately
249// /// </param>
250// /// <returns>
251// /// true if the object was added, false if an object with the same uuid was already in the scene
252// /// </returns>
253// protected internal bool AddRestoredSceneObject(
254// SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted)
255// {
256// AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, true);
257// }
258 233
259 /// <summary> 234 /// <summary>
260 /// Add a newly created object to the scene. This will both update the scene, and send information about the 235 /// Add a newly created object to the scene. This will both update the scene, and send information about the
@@ -636,13 +611,11 @@ namespace OpenSim.Region.Framework.Scenes
636 protected internal bool AttachObject( 611 protected internal bool AttachObject(
637 IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, Quaternion rot, Vector3 attachPos, bool silent) 612 IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, Quaternion rot, Vector3 attachPos, bool silent)
638 { 613 {
639 Console.WriteLine("HERE A");
640 SceneObjectGroup group = GetGroupByPrim(objectLocalID); 614 SceneObjectGroup group = GetGroupByPrim(objectLocalID);
641 if (group != null) 615 if (group != null)
642 { 616 {
643 if (m_parentScene.Permissions.CanTakeObject(group.UUID, remoteClient.AgentId)) 617 if (m_parentScene.Permissions.CanTakeObject(group.UUID, remoteClient.AgentId))
644 { 618 {
645 Console.WriteLine("HERE -1");
646 // If the attachment point isn't the same as the one previously used 619 // If the attachment point isn't the same as the one previously used
647 // set it's offset position = 0 so that it appears on the attachment point 620 // set it's offset position = 0 so that it appears on the attachment point
648 // and not in a weird location somewhere unknown. 621 // and not in a weird location somewhere unknown.
@@ -681,12 +654,9 @@ namespace OpenSim.Region.Framework.Scenes
681 itemId = group.GetFromItemID(); 654 itemId = group.GetFromItemID();
682 } 655 }
683 656
684 Console.WriteLine("HERE 0");
685 m_parentScene.AttachObject(remoteClient, AttachmentPt, itemId, group); 657 m_parentScene.AttachObject(remoteClient, AttachmentPt, itemId, group);
686 658
687 Console.WriteLine("HERE 1");
688 group.AttachToAgent(remoteClient.AgentId, AttachmentPt, attachPos, silent); 659 group.AttachToAgent(remoteClient.AgentId, AttachmentPt, attachPos, silent);
689 Console.WriteLine("HERE 2");
690 // In case it is later dropped again, don't let 660 // In case it is later dropped again, don't let
691 // it get cleaned up 661 // it get cleaned up
692 // 662 //