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

0.7.3-extended
Justin Clark-Casey (justincc) 2012-07-09 21:43:44 +01:00
parent 2b3098f011
commit c62b46a167
1 changed files with 9 additions and 0 deletions

View File

@ -2284,6 +2284,15 @@ namespace OpenSim.Region.Framework.Scenes
if (part != null) 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) if (part.SitTargetAvatar == UUID)
{ {
Vector3 sitTargetPos = part.SitTargetPosition; Vector3 sitTargetPos = part.SitTargetPosition;