set SOG.IsAttachment when doing a full check, so future gets see the right value

This commit is contained in:
UbitUmarov
2015-10-25 19:59:05 +00:00
parent 70b681d21e
commit c3532ba876

View File

@@ -447,7 +447,12 @@ namespace OpenSim.Region.Framework.Scenes
/// <returns></returns>
public bool IsAttachmentCheckFull()
{
return (IsAttachment || (m_rootPart.Shape.PCode == (byte)PCodeEnum.Primitive && m_rootPart.Shape.State != 0));
if(IsAttachment)
return true;
IsAttachment = (m_rootPart.Shape.PCode == (byte)PCodeEnum.Primitive && m_rootPart.Shape.State != 0);
return IsAttachment;
}
private struct avtocrossInfo