aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
authorroot2009-12-22 06:25:32 +0100
committerMelanie2009-12-22 04:55:43 +0000
commit05e8b4e72c440e19c54fbcb17e2120834a27c3ab (patch)
tree70103466881cedae8c63de87b8747ccaba58f7a2 /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
parentGlue code for a couple of new LSL function implementations (diff)
downloadopensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.zip
opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.tar.gz
opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.tar.bz2
opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.tar.xz
Add a data path for error messages
Committed from my other box where git is not configured properly Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to '')
-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 b98747a..eb7f5ff 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;
@@ -205,6 +206,27 @@ namespace OpenSim.Region.Framework.Scenes
205 } 206 }
206 } 207 }
207 208
209 public ArrayList GetScriptErrors(UUID itemID)
210 {
211 ArrayList ret = new ArrayList();
212
213 IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
214 if (engines == null) // No engine at all
215 return ret;
216
217 foreach (IScriptModule e in engines)
218 {
219 if (e != null)
220 {
221 ArrayList errors = e.GetScriptErrors(itemID);
222 foreach (Object line in errors)
223 ret.Add(line);
224 }
225 }
226
227 return ret;
228 }
229
208 /// <summary> 230 /// <summary>
209 /// Stop all the scripts in this prim. 231 /// Stop all the scripts in this prim.
210 /// </summary> 232 /// </summary>