Surround the "non implemented" in an else clause if face is inappropriate for:

llSetColor, llSetAlpha, llGetColor, llSetTexture, llOffsetTexture, 
llRotateTexture & llGetTexture
ThreadPoolClientBranch
Charles Krinke 2008-01-21 03:14:38 +00:00
parent da99c2ab10
commit a759ff5ea3
1 changed files with 34 additions and 16 deletions

View File

@ -485,8 +485,10 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.UpdateTexture(tex); m_host.UpdateTexture(tex);
return; return;
} }
NotImplemented("llSetColor"); else
return; {
NotImplemented("llSetColor");
}
} }
public double llGetAlpha(int face) public double llGetAlpha(int face)
@ -532,8 +534,10 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.UpdateTexture(tex); m_host.UpdateTexture(tex);
return; return;
} }
NotImplemented("llSetAlpha"); else
return; {
NotImplemented("llSetAlpha");
}
} }
public LSL_Types.Vector3 llGetColor(int face) public LSL_Types.Vector3 llGetColor(int face)
@ -557,8 +561,11 @@ namespace OpenSim.Region.ScriptEngine.Common
rgb.z = (255 - (texcolor.B * 255)) / 255; rgb.z = (255 - (texcolor.B * 255)) / 255;
return rgb; return rgb;
} }
NotImplemented("llGetColor"); else
return new LSL_Types.Vector3(); {
NotImplemented("llGetColor");
return new LSL_Types.Vector3();
}
} }
public void llSetTexture(string texture, int face) public void llSetTexture(string texture, int face)
@ -586,8 +593,10 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.UpdateTexture(tex); m_host.UpdateTexture(tex);
return; return;
} }
NotImplemented("llSetTexture"); else
return; {
NotImplemented("llSetTexture");
}
} }
public void llScaleTexture(double u, double v, int face) public void llScaleTexture(double u, double v, int face)
@ -617,8 +626,10 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.UpdateTexture(tex); m_host.UpdateTexture(tex);
return; return;
} }
NotImplemented("llScaleTexture"); else
return; {
NotImplemented("llScaleTexture");
}
} }
public void llOffsetTexture(double u, double v, int face) public void llOffsetTexture(double u, double v, int face)
@ -648,8 +659,10 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.UpdateTexture(tex); m_host.UpdateTexture(tex);
return; return;
} }
NotImplemented("llOffsetTexture"); else
return; {
NotImplemented("llOffsetTexture");
}
} }
public void llRotateTexture(double rotation, int face) public void llRotateTexture(double rotation, int face)
@ -676,8 +689,10 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.UpdateTexture(tex); m_host.UpdateTexture(tex);
return; return;
} }
NotImplemented("llRotateTexture"); else
return; {
NotImplemented("llRotateTexture");
}
} }
public string llGetTexture(int face) public string llGetTexture(int face)
@ -693,8 +708,11 @@ namespace OpenSim.Region.ScriptEngine.Common
texface = tex.GetFace((uint)face); texface = tex.GetFace((uint)face);
return texface.TextureID.ToString(); return texface.TextureID.ToString();
} }
NotImplemented("llGetTexture"); else
return String.Empty; {
NotImplemented("llGetTexture");
return String.Empty;
}
} }
public void llSetPos(LSL_Types.Vector3 pos) public void llSetPos(LSL_Types.Vector3 pos)