diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 4346b08..321e164 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -2447,6 +2447,27 @@ namespace OpenSim.Region.Environment.Scenes | |||
2447 | } | 2447 | } |
2448 | } | 2448 | } |
2449 | 2449 | ||
2450 | public bool HasAttachments() | ||
2451 | { | ||
2452 | return m_attachments.Count > 0; | ||
2453 | } | ||
2454 | |||
2455 | public bool HasScriptedAttachments() | ||
2456 | { | ||
2457 | lock (m_attachments) | ||
2458 | { | ||
2459 | foreach (SceneObjectGroup gobj in m_attachments) | ||
2460 | { | ||
2461 | if (gobj != null) | ||
2462 | { | ||
2463 | if (gobj.RootPart.ContainsScripts()) | ||
2464 | return true; | ||
2465 | } | ||
2466 | } | ||
2467 | } | ||
2468 | return false; | ||
2469 | } | ||
2470 | |||
2450 | public void RemoveAttachment(SceneObjectGroup gobj) | 2471 | public void RemoveAttachment(SceneObjectGroup gobj) |
2451 | { | 2472 | { |
2452 | lock (m_attachments) | 2473 | lock (m_attachments) |