diff options
author | Justin Clark-Casey (justincc) | 2011-08-30 22:25:38 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-30 22:25:38 +0100 |
commit | 1de68b34d959570c6dc5de42e8dac5e36f960273 (patch) | |
tree | 8c3aaf917e8e1433b10bf92c74e7d44d8a30a7b3 /OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | |
parent | minor: comment out friends number logging from login for now (diff) | |
download | opensim-SC_OLD-1de68b34d959570c6dc5de42e8dac5e36f960273.zip opensim-SC_OLD-1de68b34d959570c6dc5de42e8dac5e36f960273.tar.gz opensim-SC_OLD-1de68b34d959570c6dc5de42e8dac5e36f960273.tar.bz2 opensim-SC_OLD-1de68b34d959570c6dc5de42e8dac5e36f960273.tar.xz |
refactor: migrate DropObject handling fully into AttachmentsModule from Scene
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs index b1f9197..b0146a1 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | |||
@@ -168,12 +168,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
168 | UserInventoryHelpers.CreateInventoryItem( | 168 | UserInventoryHelpers.CreateInventoryItem( |
169 | scene, attName, attItemId, attAssetId, m_presence.UUID, InventoryType.Object); | 169 | scene, attName, attItemId, attAssetId, m_presence.UUID, InventoryType.Object); |
170 | 170 | ||
171 | // Check item status | 171 | ISceneEntity so = m_attMod.RezSingleAttachmentFromInventory( |
172 | Assert.That(scene.InventoryService.GetItem(new InventoryItemBase(attItemId)), Is.Not.Null); | ||
173 | |||
174 | UUID attSoId = m_attMod.RezSingleAttachmentFromInventory( | ||
175 | m_presence.ControllingClient, attItemId, (uint)AttachmentPoint.Chest); | 172 | m_presence.ControllingClient, attItemId, (uint)AttachmentPoint.Chest); |
176 | m_attMod.DetachSingleAttachmentToGround(attSoId, m_presence.ControllingClient); | 173 | m_attMod.DetachSingleAttachmentToGround(so.LocalId, m_presence.ControllingClient); |
177 | 174 | ||
178 | // Check scene presence status | 175 | // Check scene presence status |
179 | Assert.That(m_presence.HasAttachments(), Is.False); | 176 | Assert.That(m_presence.HasAttachments(), Is.False); |