mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Merge branch 'master' into careminster-presence-refactor
This commit is contained in:
@@ -4887,6 +4887,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return result;
|
||||
}
|
||||
|
||||
public LSL_Integer llGetLinkNumberOfSides(int link)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
SceneObjectPart linkedPart;
|
||||
|
||||
if (link == ScriptBaseClass.LINK_ROOT)
|
||||
linkedPart = m_host.ParentGroup.RootPart;
|
||||
else if (link == ScriptBaseClass.LINK_THIS)
|
||||
linkedPart = m_host;
|
||||
else
|
||||
linkedPart = m_host.ParentGroup.GetLinkNumPart(link);
|
||||
|
||||
return GetNumberOfSides(linkedPart);
|
||||
}
|
||||
|
||||
public LSL_Integer llGetNumberOfSides()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
Reference in New Issue
Block a user