Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't allow a prim to be sat upon if its part of an attachment

  • Loading branch information...
commit d6f563794efb857210f4c773ef5218855c9a4ea4 1 parent 2eaa6d5
Justin Clark-Casey authored July 09, 2012
9  OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2219,6 +2219,15 @@ public void HandleAgentSit(IClientAPI remoteClient, UUID agentID, string sitAnim
2219 2219
 
2220 2220
             if (part != null)
2221 2221
             {
  2222
+                if (part.ParentGroup.IsAttachment)
  2223
+                {
  2224
+                    m_log.WarnFormat(
  2225
+                        "[SCENE PRESENCE]: Avatar {0} tried to sit on part {1} from object {2} in {3} but this is an attachment for avatar id {4}",
  2226
+                        Name, part.Name, part.ParentGroup.Name, Scene.Name, part.ParentGroup.AttachedAvatar);
  2227
+
  2228
+                    return;
  2229
+                }
  2230
+
2222 2231
                 if (part.SitTargetAvatar == UUID)
2223 2232
                 {
2224 2233
                     Vector3 sitTargetPos = part.SitTargetPosition;

0 notes on commit d6f5637

Please sign in to comment.
Something went wrong with that request. Please try again.