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

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

View File

@ -2219,6 +2219,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;