diff options
author | Justin Clark-Casey (justincc) | 2010-03-12 22:39:15 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-12 22:39:15 +0000 |
commit | b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb (patch) | |
tree | a9cbf02470f359f998bb76a76b0c37fd9b42d15d /OpenSim/Region/Framework/Scenes/SceneGraph.cs | |
parent | start laoding griduser local connector, though it isn't invoked by anything yet (diff) | |
download | opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.zip opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.tar.gz opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.tar.bz2 opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.tar.xz |
refactor: move client invoked AttachObject from SceneGraph to AttachmentsModule
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 380722d..a88d456 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -487,41 +487,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
487 | } | 487 | } |
488 | 488 | ||
489 | /// <summary> | 489 | /// <summary> |
490 | /// Event Handling routine for Attach Object | ||
491 | /// </summary> | ||
492 | /// <param name="remoteClient"></param> | ||
493 | /// <param name="objectLocalID"></param> | ||
494 | /// <param name="AttachmentPt"></param> | ||
495 | /// <param name="rot"></param> | ||
496 | protected internal void AttachObject(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, Quaternion rot, bool silent) | ||
497 | { | ||
498 | // If we can't take it, we can't attach it! | ||
499 | SceneObjectPart part = m_parentScene.GetSceneObjectPart(objectLocalID); | ||
500 | if (part == null) | ||
501 | return; | ||
502 | |||
503 | if (!m_parentScene.Permissions.CanTakeObject(part.UUID, remoteClient.AgentId)) | ||
504 | return; | ||
505 | |||
506 | // Calls attach with a Zero position | ||
507 | if (m_parentScene.AttachmentsModule.AttachObject(remoteClient, objectLocalID, AttachmentPt, rot, Vector3.Zero, false)) | ||
508 | { | ||
509 | m_parentScene.SendAttachEvent(objectLocalID, part.ParentGroup.GetFromItemID(), remoteClient.AgentId); | ||
510 | |||
511 | // Save avatar attachment information | ||
512 | ScenePresence presence; | ||
513 | if (m_parentScene.AvatarFactory != null && m_parentScene.TryGetAvatar(remoteClient.AgentId, out presence)) | ||
514 | { | ||
515 | m_log.Info( | ||
516 | "[SCENE]: Saving avatar attachment. AgentID: " + remoteClient.AgentId | ||
517 | + ", AttachmentPoint: " + AttachmentPt); | ||
518 | |||
519 | m_parentScene.AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); | ||
520 | } | ||
521 | } | ||
522 | } | ||
523 | |||
524 | /// <summary> | ||
525 | /// Rez an attachment | 490 | /// Rez an attachment |
526 | /// </summary> | 491 | /// </summary> |
527 | /// <param name="remoteClient"></param> | 492 | /// <param name="remoteClient"></param> |