* 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.
parent
06a367be19
commit
80ea0b94b9
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue