diff options
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs index 2058e3a..77f69a5 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs | |||
@@ -209,6 +209,17 @@ public abstract class BSLinkset | |||
209 | return ret; | 209 | return ret; |
210 | } | 210 | } |
211 | 211 | ||
212 | public bool TryGetLinkInfo(BSPrimLinkable child, out BSLinkInfo foundInfo) | ||
213 | { | ||
214 | bool ret = false; | ||
215 | BSLinkInfo found = null; | ||
216 | lock (m_linksetActivityLock) | ||
217 | { | ||
218 | ret = m_children.TryGetValue(child, out found); | ||
219 | } | ||
220 | foundInfo = found; | ||
221 | return ret; | ||
222 | } | ||
212 | // Perform an action on each member of the linkset including root prim. | 223 | // Perform an action on each member of the linkset including root prim. |
213 | // Depends on the action on whether this should be done at taint time. | 224 | // Depends on the action on whether this should be done at taint time. |
214 | public delegate bool ForEachLinkInfoAction(BSLinkInfo obj); | 225 | public delegate bool ForEachLinkInfoAction(BSLinkInfo obj); |