Prevent leftover attachments from clogging up the pipes
parent
c4eb430ad2
commit
0049ec16f5
|
@ -4366,9 +4366,12 @@ if (m_animator.m_jumping) force.Z = m_animator.m_jumpVelocity; // add for ju
|
||||||
{
|
{
|
||||||
if (grp.HasGroupChanged) // Resizer scripts?
|
if (grp.HasGroupChanged) // Resizer scripts?
|
||||||
{
|
{
|
||||||
grp.DetachToInventoryPrep();
|
grp.RootPart.IsAttachment = false;
|
||||||
|
grp.AbsolutePosition = grp.RootPart.AttachedPos;
|
||||||
|
// grp.DetachToInventoryPrep();
|
||||||
attachmentsModule.UpdateKnownItem(ControllingClient,
|
attachmentsModule.UpdateKnownItem(ControllingClient,
|
||||||
grp, grp.GetFromItemID(), grp.OwnerID);
|
grp, grp.GetFromItemID(), grp.OwnerID);
|
||||||
|
grp.RootPart.IsAttachment = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue