mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
* 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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user