aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs18
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c4109dd..5264613 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7782,8 +7782,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7782 7782
7783 if (parts.Count > 0) 7783 if (parts.Count > 0)
7784 { 7784 {
7785 foreach (SceneObjectPart part in parts) 7785 foreach (object part in parts)
7786 remaining = SetPrimParams(part, rules); 7786 {
7787 if (part is SceneObjectPart)
7788 remaining = SetPrimParams((SceneObjectPart)part, rules);
7789 else
7790 remaining = SetPrimParams((ScenePresence)part, rules);
7791 }
7787 7792
7788 while((object)remaining != null && remaining.Length > 2) 7793 while((object)remaining != null && remaining.Length > 2)
7789 { 7794 {
@@ -7797,8 +7802,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7797 foreach (ScenePresence p in avatars) 7802 foreach (ScenePresence p in avatars)
7798 parts.Add(p); 7803 parts.Add(p);
7799 7804
7800 foreach (SceneObjectPart part in parts) 7805 foreach (object part in parts)
7801 remaining = SetPrimParams(part, rules); 7806 {
7807 if (part is SceneObjectPart)
7808 remaining = SetPrimParams((SceneObjectPart)part, rules);
7809 else
7810 remaining = SetPrimParams((ScenePresence)part, rules);
7811 }
7802 } 7812 }
7803 } 7813 }
7804 } 7814 }