From fc3cf2b5a3ec6d5405db41c2729a968d11c4a8fb Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 1 May 2012 23:21:28 +0200 Subject: Fix saving of attachment positions --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index bc2ca4c..10d53d7 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -3700,7 +3700,7 @@ namespace OpenSim.Region.Framework.Scenes } if ((change & ObjectChangeType.Position) != 0) { - group.AbsolutePosition = data.position; + UpdateGroupPosition(data.position); updateType = updatetype.groupterse; } else -- cgit v1.1 From 98e9f225446ade7f1650db96fb4b8d763af1730e Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 2 May 2012 00:29:56 +0200 Subject: Preserve attachment rotation on objects rezzed via a script. Makes toasters work right, finally. --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 3 +++ OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 1 + 2 files changed, 4 insertions(+) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index b198ca7..b0bc188 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -197,6 +197,9 @@ namespace OpenSim.Region.Framework.Scenes public Vector3 AttachOffset = Vector3.Zero; [XmlIgnore] + public Quaternion AttachRotation = Quaternion.Identity; + + [XmlIgnore] public int STATUS_ROTATE_X; public int STATUS_ROTATE_Y; diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index a2649ee..959046a 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -812,6 +812,7 @@ namespace OpenSim.Region.Framework.Scenes group.RootPart.AttachPoint = group.RootPart.Shape.State; group.RootPart.AttachOffset = group.AbsolutePosition; + group.RootPart.AttachRotation = group.GroupRotation; group.ResetIDs(); -- cgit v1.1