From f919b861564a6153fd290ee46ead51f660f08834 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 22 Oct 2008 23:07:45 +0000 Subject: Thank you kindly, Idb for a patch that: Added AGENT_ATTACHMENTS and AGENT_SCRIPTED to llGetAgentInfo Added to llGetAgentSize to include shoes in avatar height calculation. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') 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 } } + public bool HasAttachments() + { + return m_attachments.Count > 0; + } + + public bool HasScriptedAttachments() + { + lock (m_attachments) + { + foreach (SceneObjectGroup gobj in m_attachments) + { + if (gobj != null) + { + if (gobj.RootPart.ContainsScripts()) + return true; + } + } + } + return false; + } + public void RemoveAttachment(SceneObjectGroup gobj) { lock (m_attachments) -- cgit v1.1