mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Eliminate duplicate AttachmentPoint properties by always using the one stored in the root part's state field.
This commit is contained in:
@@ -166,7 +166,24 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <remarks>
|
||||
/// 0 if we're not attached to anything
|
||||
/// </remarks>
|
||||
public uint AttachmentPoint;
|
||||
public uint AttachmentPoint
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_rootPart.Shape.State;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
IsAttachment = value != 0;
|
||||
m_rootPart.Shape.State = (byte)value;
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearPartAttachmentData()
|
||||
{
|
||||
AttachmentPoint = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is this scene object phantom?
|
||||
@@ -976,23 +993,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public byte GetAttachmentPoint()
|
||||
{
|
||||
return m_rootPart.Shape.State;
|
||||
}
|
||||
|
||||
public void SetAttachmentPoint(uint point)
|
||||
{
|
||||
AttachmentPoint = point;
|
||||
IsAttachment = point != 0;
|
||||
m_rootPart.Shape.State = (byte)point;
|
||||
}
|
||||
|
||||
public void ClearPartAttachmentData()
|
||||
{
|
||||
SetAttachmentPoint((Byte)0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user