aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index cdd23bd..c3c6342 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -29,6 +29,7 @@ using System;
29using System.Xml; 29using System.Xml;
30using System.IO; 30using System.IO;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using System.Collections;
32using System.Reflection; 33using System.Reflection;
33using OpenMetaverse; 34using OpenMetaverse;
34using log4net; 35using log4net;
@@ -210,6 +211,27 @@ namespace OpenSim.Region.Framework.Scenes
210 } 211 }
211 } 212 }
212 213
214 public ArrayList GetScriptErrors(UUID itemID)
215 {
216 ArrayList ret = new ArrayList();
217
218 IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
219 if (engines == null) // No engine at all
220 return ret;
221
222 foreach (IScriptModule e in engines)
223 {
224 if (e != null)
225 {
226 ArrayList errors = e.GetScriptErrors(itemID);
227 foreach (Object line in errors)
228 ret.Add(line);
229 }
230 }
231
232 return ret;
233 }
234
213 /// <summary> 235 /// <summary>
214 /// Stop all the scripts in this prim. 236 /// Stop all the scripts in this prim.
215 /// </summary> 237 /// </summary>