diff options
author | Melanie | 2012-08-25 18:24:52 +0100 |
---|---|---|
committer | Melanie | 2012-08-25 18:24:52 +0100 |
commit | af6b2420718447a534e1ceedea366fc1dbf29dd7 (patch) | |
tree | 9d6521098872051179fa68cca9f862529ee70e9b /OpenSim/Region | |
parent | renaming to be similar to equivalent Set command (diff) | |
download | opensim-SC-af6b2420718447a534e1ceedea366fc1dbf29dd7.zip opensim-SC-af6b2420718447a534e1ceedea366fc1dbf29dd7.tar.gz opensim-SC-af6b2420718447a534e1ceedea366fc1dbf29dd7.tar.bz2 opensim-SC-af6b2420718447a534e1ceedea366fc1dbf29dd7.tar.xz |
use SceneObjectPart instead of var
Conflicts:
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c8b6a7e..7b52ea3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6252,19 +6252,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6252 | m_host.AddScriptLPS(1); | 6252 | m_host.AddScriptLPS(1); |
6253 | 6253 | ||
6254 | List<SceneObjectPart> parts = GetLinkParts(linknumber); | 6254 | List<SceneObjectPart> parts = GetLinkParts(linknumber); |
6255 | if (parts.Count > 0) | 6255 | |
6256 | try | ||
6256 | { | 6257 | { |
6257 | try | 6258 | foreach (SceneObjectPart part in parts) |
6258 | { | ||
6259 | foreach (var part in parts) | ||
6260 | { | ||
6261 | SetTextureAnim(part, mode, face, sizex, sizey, start, length, rate); | ||
6262 | } | ||
6263 | } | ||
6264 | finally | ||
6265 | { | 6259 | { |
6260 | SetTextureAnim(part, mode, face, sizex, sizey, start, length, rate); | ||
6266 | } | 6261 | } |
6267 | } | 6262 | } |
6263 | finally | ||
6264 | { | ||
6265 | } | ||
6268 | } | 6266 | } |
6269 | 6267 | ||
6270 | private void SetTextureAnim(SceneObjectPart part, int mode, int face, int sizex, int sizey, double start, double length, double rate) | 6268 | 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 | |||
6658 | 6656 | ||
6659 | List<SceneObjectPart> parts = GetLinkParts(linknumber); | 6657 | List<SceneObjectPart> parts = GetLinkParts(linknumber); |
6660 | 6658 | ||
6661 | foreach (var part in parts) | 6659 | foreach (SceneObjectPart part in parts) |
6662 | { | 6660 | { |
6663 | SetParticleSystem(part, rules); | 6661 | SetParticleSystem(part, rules); |
6664 | } | 6662 | } |