mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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 prims
This commit is contained in:
@@ -3644,10 +3644,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
|
||||
partItemID = item.ItemID;
|
||||
linkNumber = m_host.LinkNum;
|
||||
if(m_host.ParentGroup.Children.Count == 1)
|
||||
linkNumber = 0;
|
||||
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user