mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
* Bring llSetLinkTexture into line with llSetLinkColor and lLSetLinkPrimitiveParams() implementations * Thanks ralphos
This commit is contained in:
@@ -1521,6 +1521,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// ScriptSleep(200);
|
||||
}
|
||||
|
||||
public void llSetLinkTexture(int linknumber, string texture, int face)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
List<SceneObjectPart> parts = GetLinkParts(linknumber);
|
||||
|
||||
foreach (SceneObjectPart part in parts)
|
||||
SetTexture(part, texture, face);
|
||||
|
||||
// ScriptSleep(200);
|
||||
}
|
||||
|
||||
private void SetTexture(SceneObjectPart part, string texture, int face)
|
||||
{
|
||||
UUID textureID=new UUID();
|
||||
@@ -8026,22 +8038,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void llSetLinkTexture(int linknumber, string texture, int face)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (m_host.ParentGroup == null)
|
||||
return;
|
||||
|
||||
SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknumber);
|
||||
|
||||
if (part == null)
|
||||
return;
|
||||
|
||||
SetTexture(part, texture, face);
|
||||
// ScriptSleep(200);
|
||||
}
|
||||
|
||||
public LSL_String llStringTrim(string src, int type)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
Reference in New Issue
Block a user