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

0.8.2-post-fixes
UbitUmarov 2015-10-25 19:59:05 +00:00 committed by Diva Canto
parent 36af6a3baa
commit 84c8a7ae53
1 changed files with 6 additions and 1 deletions

View File

@ -447,7 +447,12 @@ namespace OpenSim.Region.Framework.Scenes
/// <returns></returns> /// <returns></returns>
public bool IsAttachmentCheckFull() 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 private struct avtocrossInfo