Fix llAttachToAvatar. This addresses mantis 128 .
parent
117fd629d6
commit
b9c40320f1
|
@ -3065,9 +3065,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
if (m_host.ParentGroup.RootPart.AttachmentPoint == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
TaskInventoryItem item;
|
TaskInventoryItem item;
|
||||||
|
|
||||||
m_host.TaskInventory.LockItemsForRead(true);
|
m_host.TaskInventory.LockItemsForRead(true);
|
||||||
|
@ -3093,11 +3090,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
|
ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
|
||||||
|
|
||||||
|
/*
|
||||||
IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
|
IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
|
||||||
if (attachmentsModule != null)
|
if (attachmentsModule != null)
|
||||||
|
{
|
||||||
attachmentsModule.AttachObject(
|
attachmentsModule.AttachObject(
|
||||||
presence.ControllingClient, grp.LocalId,
|
presence.ControllingClient, grp.LocalId,
|
||||||
(uint)attachment, Quaternion.Identity, Vector3.Zero, false);
|
(uint)attachment, Quaternion.Identity, Vector3.Zero, false);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
grp.AttachToAgent(m_host.OwnerID, (uint)attachment, Vector3.Zero, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue