aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-06-22 01:33:27 +0100
committerJustin Clark-Casey (justincc)2012-06-22 01:33:27 +0100
commitfda39c11bf8e440414f44e8233aa67818da51036 (patch)
tree0520d81010eba7c07dc1bad4b080f878f455d34c /OpenSim
parentrefactor AttachmentsModule tests to use a common method for standard attachme... (diff)
downloadopensim-SC-fda39c11bf8e440414f44e8233aa67818da51036.zip
opensim-SC-fda39c11bf8e440414f44e8233aa67818da51036.tar.gz
opensim-SC-fda39c11bf8e440414f44e8233aa67818da51036.tar.bz2
opensim-SC-fda39c11bf8e440414f44e8233aa67818da51036.tar.xz
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
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 18877c1e..1e900a0 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2911,6 +2911,11 @@ namespace OpenSim.Region.Framework.Scenes
2911 m_scene.PhysicsScene.AddPhysicsActorTaint(actor); 2911 m_scene.PhysicsScene.AddPhysicsActorTaint(actor);
2912 } 2912 }
2913 2913
2914 if (IsAttachment)
2915 {
2916 m_rootPart.AttachedPos = pos;
2917 }
2918
2914 AbsolutePosition = pos; 2919 AbsolutePosition = pos;
2915 2920
2916 HasGroupChanged = true; 2921 HasGroupChanged = true;