Fix "from" link number in single prims to 0. Previously, this was 1,
causing sime scripts that expected the first param of the link_message to match llGetLinkNumber() to fail in single prims0.6.2-post-fixes
parent
69b72ac83c
commit
a3b67ec8c7
|
@ -3644,10 +3644,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
|
|
||||||
partItemID = item.ItemID;
|
partItemID = item.ItemID;
|
||||||
|
linkNumber = m_host.LinkNum;
|
||||||
|
if(m_host.ParentGroup.Children.Count == 1)
|
||||||
|
linkNumber = 0;
|
||||||
|
|
||||||
|
|
||||||
object[] resobj = new object[]
|
object[] resobj = new object[]
|
||||||
{
|
{
|
||||||
new LSL_Integer(m_host.LinkNum), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id)
|
new LSL_Integer(linkNumber), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id)
|
||||||
};
|
};
|
||||||
|
|
||||||
m_ScriptEngine.PostScriptEvent(partItemID,
|
m_ScriptEngine.PostScriptEvent(partItemID,
|
||||||
|
|
Loading…
Reference in New Issue