Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit d6f563794efb857210f4c773ef5218855c9a4ea4 1 parent 2eaa6d5
@justincc justincc authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 OpenSim/Region/Framework/Scenes/ScenePresence.cs
View
9 OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2219,6 +2219,15 @@ public void HandleAgentSit(IClientAPI remoteClient, UUID agentID, string sitAnim
if (part != null)
{
+ if (part.ParentGroup.IsAttachment)
+ {
+ m_log.WarnFormat(
+ "[SCENE PRESENCE]: Avatar {0} tried to sit on part {1} from object {2} in {3} but this is an attachment for avatar id {4}",
+ Name, part.Name, part.ParentGroup.Name, Scene.Name, part.ParentGroup.AttachedAvatar);
+
+ return;
+ }
+
if (part.SitTargetAvatar == UUID)
{
Vector3 sitTargetPos = part.SitTargetPosition;
Please sign in to comment.
Something went wrong with that request. Please try again.