LIBOMV-921: IsAttachment Should be Preserved as Primitive Member

Patch by Bennett Goble

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3574 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Latif Khalifa
2011-08-08 21:36:24 +00:00
parent 5b41f65d6e
commit 55b59bccea
2 changed files with 6 additions and 3 deletions

View File

@@ -2000,6 +2000,7 @@ namespace OpenMetaverse
prim.MediaURL = Utils.BytesToString(block.MediaURL);
prim.Text = Utils.BytesToString(block.Text);
prim.TextColor = new Color4(block.TextColor, 0, false, true);
prim.IsAttachment = attachment;
// Sound information
prim.Sound = block.Sound;
@@ -2554,13 +2555,13 @@ namespace OpenMetaverse
#endregion
#region Raise Events
prim.IsAttachment = (flags & CompressedFlags.HasNameValues) != 0 && prim.ParentID != 0;
bool isAttachment = (flags & CompressedFlags.HasNameValues) != 0 && prim.ParentID != 0;
#region Raise Events
EventHandler<PrimEventArgs> handler = m_ObjectUpdate;
if (handler != null)
handler(this, new PrimEventArgs(simulator, prim, update.RegionData.TimeDilation, isNew, isAttachment));
handler(this, new PrimEventArgs(simulator, prim, update.RegionData.TimeDilation, isNew, prim.IsAttachment));
#endregion
}