mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Implement llGetLinKNumberOfSides().
Based on code in http://opensimulator.org/mantis/view.php?id=5489 Thanks onesong.
This commit is contained in:
@@ -4458,10 +4458,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return result;
|
||||
}
|
||||
|
||||
public void llGetLinkNumberOfSides(int link)
|
||||
public LSL_Integer llGetLinkNumberOfSides(int link)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetLinkNumberOfSides");
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user