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.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 7f49ced..7a0d7b7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -886,30 +886,5 @@ namespace OpenSim.Region.Framework.Scenes
886 } 886 }
887 return ret; 887 return ret;
888 } 888 }
889
890 public bool CanBeDeleted()
891 {
892 if (!ContainsScripts())
893 return true;
894
895 IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
896
897 if (engines == null) // No engine at all
898 return true;
899
900 foreach (TaskInventoryItem item in m_items.Values)
901 {
902 if (item.InvType == (int)InventoryType.LSL)
903 {
904 foreach (IScriptModule e in engines)
905 {
906 if (!e.CanBeDeleted(item.ItemID))
907 return false;
908 }
909 }
910 }
911
912 return true;
913 }
914 } 889 }
915} 890}