Stop "handle sit user name" command from trying to sit avatars on objects which have sit positions but are attachments

0.7.6-extended
Justin Clark-Casey (justincc) 2013-08-22 22:49:23 +01:00
parent 416bbe9583
commit beb9d966f9
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand
foreach (SceneObjectGroup sceneObject in sceneObjects) foreach (SceneObjectGroup sceneObject in sceneObjects)
{ {
if (sceneObject.IsAttachment)
continue;
foreach (SceneObjectPart part in sceneObject.Parts) foreach (SceneObjectPart part in sceneObject.Parts)
{ {
if (part.IsSitTargetSet && part.SitTargetAvatar == UUID.Zero) if (part.IsSitTargetSet && part.SitTargetAvatar == UUID.Zero)