aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorCharles Krinke2008-10-22 23:07:45 +0000
committerCharles Krinke2008-10-22 23:07:45 +0000
commitf919b861564a6153fd290ee46ead51f660f08834 (patch)
tree8d340cb3c40880ff8177eeeb70f5113250c2a2cc /OpenSim/Region/Environment/Scenes/ScenePresence.cs
parent- Final fixes to the code coverage test (nant test-cov). (diff)
downloadopensim-SC_OLD-f919b861564a6153fd290ee46ead51f660f08834.zip
opensim-SC_OLD-f919b861564a6153fd290ee46ead51f660f08834.tar.gz
opensim-SC_OLD-f919b861564a6153fd290ee46ead51f660f08834.tar.bz2
opensim-SC_OLD-f919b861564a6153fd290ee46ead51f660f08834.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs21
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)