aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index d4346e4..2f08322 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -32,6 +32,7 @@ using OpenMetaverse;
32using log4net; 32using log4net;
33using OpenSim.Framework; 33using OpenSim.Framework;
34using OpenSim.Framework.Communications.Cache; 34using OpenSim.Framework.Communications.Cache;
35using OpenSim.Region.Interfaces;
35using OpenSim.Region.Environment.Interfaces; 36using OpenSim.Region.Environment.Interfaces;
36using OpenSim.Region.Environment.Scenes.Scripting; 37using OpenSim.Region.Environment.Scenes.Scripting;
37 38
@@ -763,5 +764,30 @@ namespace OpenSim.Region.Environment.Scenes
763 764
764 return ret; 765 return ret;
765 } 766 }
767
768 string[] GetScriptAssemblies()
769 {
770 IScriptModule[] engines = m_parentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
771
772 List<string> ret = new List<string>();
773
774 foreach (TaskInventoryItem item in m_taskInventory.Values)
775 {
776 if (item.InvType == 10)
777 {
778 foreach (IScriptModule e in engines)
779 {
780 string n = e.GetAssemblyName(item.ItemID);
781 if (n != "")
782 {
783 if (!ret.Contains(n))
784 ret.Add(n);
785 break;
786 }
787 }
788 }
789 }
790 return ret.ToArray();
791 }
766 } 792 }
767} 793}