* Fixes child prim not editable as an attachment. You can right click on child prim in an attachment and get the proper pie menu. You get the attachment axis scope in the edit box.

0.6.0-stable
Teravus Ovares 2008-04-29 13:12:36 +00:00
parent 06a367be19
commit 80ea0b94b9
2 changed files with 16 additions and 2 deletions

View File

@ -1276,7 +1276,7 @@ namespace OpenSim.Region.Environment.Scenes
{
if (group.RootPart.Shape.PCode == (byte)PCode.Prim)
{
group.RootPart.Shape.State = (byte)0;
group.ClearPartAttachmentData();
}
group.ApplyPhysics(m_physicalPrim);
}

View File

@ -673,7 +673,13 @@ namespace OpenSim.Region.Environment.Scenes
m_rootPart.m_IsAttachment = true;
m_rootPart.SetParentLocalId(avatar.LocalId);
m_rootPart.SetAttachmentPoint(attachmentpoint);
lock (m_parts)
{
foreach (SceneObjectPart part in m_parts.Values)
{
part.SetAttachmentPoint(attachmentpoint);
}
}
avatar.AddAttachment(this);
m_rootPart.ScheduleFullUpdate();
@ -688,6 +694,14 @@ namespace OpenSim.Region.Environment.Scenes
return (byte)0;
}
public void ClearPartAttachmentData()
{
foreach (SceneObjectPart part in m_parts.Values)
{
part.SetAttachmentPoint((Byte)0);
}
}
public void DetachToGround()
{
ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.m_attachedAvatar);