Eliminate duplicate AttachmentPoint properties by always using the one stored in the root part's state field.

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-27 00:33:24 +01:00
parent b7700428ec
commit 1615e7d29f
4 changed files with 41 additions and 44 deletions

View File

@@ -81,7 +81,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
if (grp.IsAttachment)
{
if (grp.GetAttachmentPoint() > 30) // HUD
if (grp.AttachmentPoint > 30) // HUD
{
if (sp.ControllingClient.AgentId != grp.OwnerID)
return;
@@ -115,7 +115,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
{
SceneObjectGroup grp = part.ParentGroup;
if (grp.IsAttachment && grp.GetAttachmentPoint() > 30)
if (grp.IsAttachment && grp.AttachmentPoint > 30)
{
objectID = ownerID;
parentID = ownerID;