Implement llGetLinkNumberOfSides(), needed for 1-script sculptie foot shoe
scripts.avinationmerge
parent
61137eac22
commit
dd7f9ed7bf
|
@ -10777,6 +10777,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
return GetLinkPrimitiveParams(obj, rules);
|
||||
}
|
||||
|
||||
public LSL_Integer llGetLinkNumberOfSides(LSL_Integer link)
|
||||
{
|
||||
List<SceneObjectPart> parts = GetLinkParts(link);
|
||||
if (parts.Count < 1)
|
||||
return 0;
|
||||
|
||||
return GetNumberOfSides(parts[0]);
|
||||
}
|
||||
}
|
||||
|
||||
public class NotecardCache
|
||||
|
|
|
@ -398,6 +398,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
|||
LSL_Vector llWind(LSL_Vector offset);
|
||||
LSL_String llXorBase64Strings(string str1, string str2);
|
||||
LSL_String llXorBase64StringsCorrect(string str1, string str2);
|
||||
LSL_Integer llGetLinkNumberOfSides(LSL_Integer link);
|
||||
|
||||
void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules);
|
||||
LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules);
|
||||
|
|
|
@ -1849,5 +1849,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
{
|
||||
return m_LSL_Functions.llClearPrimMedia(face);
|
||||
}
|
||||
|
||||
public LSL_Integer llGetLinkNumberOfSides(LSL_Integer link)
|
||||
{
|
||||
return m_LSL_Functions.llGetLinkNumberOfSides(link);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue