aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index ceb4395..562232c 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -4011,15 +4011,24 @@ Console.WriteLine("Scripted Sit ofset {0}", m_pos);
4011 { 4011 {
4012 string xmlData; 4012 string xmlData;
4013 XmlDocument d = new XmlDocument(); 4013 XmlDocument d = new XmlDocument();
4014 UUID asset;
4014 if (itemData.TryGetValue(itemID, out xmlData)) 4015 if (itemData.TryGetValue(itemID, out xmlData))
4015 { 4016 {
4016 d.LoadXml(xmlData); 4017 d.LoadXml(xmlData);
4017 m_log.InfoFormat("[ATTACHMENT]: Found saved state for item {0}, loading it", itemID); 4018 m_log.InfoFormat("[ATTACHMENT]: Found saved state for item {0}, loading it", itemID);
4018 }
4019 4019
4020 // Rez from inventory 4020 // Rez from inventory
4021 UUID asset 4021 asset
4022 = m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p, true, d); 4022 = m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p, true, d);
4023
4024 }
4025 else
4026 {
4027 // Rez from inventory (with a null doc to let
4028 // CHANGED_OWNER happen)
4029 asset
4030 = m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p, true, null);
4031 }
4023 4032
4024 m_log.InfoFormat( 4033 m_log.InfoFormat(
4025 "[ATTACHMENT]: Rezzed attachment in point {0} from item {1} and asset {2} ({3})", 4034 "[ATTACHMENT]: Rezzed attachment in point {0} from item {1} and asset {2} ({3})",