use SceneObjectPart instead of var

Conflicts:

	OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
avinationmerge
Melanie 2012-08-25 18:24:52 +01:00
parent 1eb1c1bd4b
commit af6b242071
1 changed files with 8 additions and 10 deletions

View File

@ -6252,19 +6252,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
List<SceneObjectPart> parts = GetLinkParts(linknumber); List<SceneObjectPart> parts = GetLinkParts(linknumber);
if (parts.Count > 0)
try
{ {
try foreach (SceneObjectPart part in parts)
{
foreach (var part in parts)
{
SetTextureAnim(part, mode, face, sizex, sizey, start, length, rate);
}
}
finally
{ {
SetTextureAnim(part, mode, face, sizex, sizey, start, length, rate);
} }
} }
finally
{
}
} }
private void SetTextureAnim(SceneObjectPart part, int mode, int face, int sizex, int sizey, double start, double length, double rate) private void SetTextureAnim(SceneObjectPart part, int mode, int face, int sizex, int sizey, double start, double length, double rate)
@ -6658,7 +6656,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
List<SceneObjectPart> parts = GetLinkParts(linknumber); List<SceneObjectPart> parts = GetLinkParts(linknumber);
foreach (var part in parts) foreach (SceneObjectPart part in parts)
{ {
SetParticleSystem(part, rules); SetParticleSystem(part, rules);
} }