Fix bug where attachments would not retain position if just rotated and not moved.

This was because we were not setting AttachedPos in SOG.UpdateGroupPositionPR, unlike UpdateGroupPosition
This commit is contained in:
Justin Clark-Casey (justincc)
2012-06-22 01:33:27 +01:00
parent 798846c5b6
commit fda39c11bf

View File

@@ -2911,6 +2911,11 @@ namespace OpenSim.Region.Framework.Scenes
m_scene.PhysicsScene.AddPhysicsActorTaint(actor);
}
if (IsAttachment)
{
m_rootPart.AttachedPos = pos;
}
AbsolutePosition = pos;
HasGroupChanged = true;