diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 22 |
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; | |||
29 | using System.Xml; | 29 | using System.Xml; |
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using System.Collections; | ||
32 | using System.Reflection; | 33 | using System.Reflection; |
33 | using OpenMetaverse; | 34 | using OpenMetaverse; |
34 | using log4net; | 35 | using 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> |