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
0.7.3-extended
Justin Clark-Casey (justincc) 2012-06-22 01:33:27 +01:00
parent 95670d2086
commit 1999338773
1 changed files with 5 additions and 0 deletions

View File

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