Fixed undo positions for attachments

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
StolenRuby
2020-10-25 16:21:13 +00:00
committed by UbitUmarov
parent abe7a31952
commit fa4c84feb8

View File

@@ -56,7 +56,12 @@ namespace OpenSim.Region.Framework.Scenes
if (part.ParentGroup.RootPart == part)
{
if ((change & ObjectChangeType.Position) != 0)
data.position = part.ParentGroup.AbsolutePosition;
{
if (part.ParentGroup.IsAttachment)
data.position = part.AttachedPos;
else
data.position = part.ParentGroup.AbsolutePosition;
}
if ((change & ObjectChangeType.Rotation) != 0)
data.rotation = part.RotationOffset;
if ((change & ObjectChangeType.Scale) != 0)