keep SOG reference to root part since two many things depend on deleted SOGs not being deleted

This commit is contained in:
UbitUmarov
2015-12-10 17:04:39 +00:00
parent 62009ba9c0
commit 6de7da467a
3 changed files with 10 additions and 7 deletions

View File

@@ -721,13 +721,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
acd.Appearance.SetAttachment((int)AttachmentPoint.Chest, attItem.ID, attItem.AssetID);
ScenePresence presence = SceneHelpers.AddScenePresence(scene, acd);
SceneObjectGroup rezzedAtt = presence.GetAttachments()[0];
UUID rezzedAttID = presence.GetAttachments()[0].UUID;
m_numberOfAttachEventsFired = 0;
scene.CloseAgent(presence.UUID, false);
// Check that we can't retrieve this attachment from the scene.
Assert.That(scene.GetSceneObjectGroup(rezzedAtt.UUID), Is.Null);
Assert.That(scene.GetSceneObjectGroup(rezzedAttID), Is.Null);
// Check events
Assert.That(m_numberOfAttachEventsFired, Is.EqualTo(0));