diff options
author | Melanie | 2011-04-30 14:22:46 +0200 |
---|---|---|
committer | Melanie | 2011-04-30 14:22:46 +0200 |
commit | 98fe37051a6844851245d4cd5460326873eb9759 (patch) | |
tree | af1e2cef453b0e62d41445e8dc2f09d763b7c692 /OpenSim/Region/Framework | |
parent | Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff) | |
download | opensim-SC_OLD-98fe37051a6844851245d4cd5460326873eb9759.zip opensim-SC_OLD-98fe37051a6844851245d4cd5460326873eb9759.tar.gz opensim-SC_OLD-98fe37051a6844851245d4cd5460326873eb9759.tar.bz2 opensim-SC_OLD-98fe37051a6844851245d4cd5460326873eb9759.tar.xz |
Set the attachment data on scripted rez to allow toasters to work.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 1992956..3e0241c 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -803,6 +803,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
803 | string xmlData = Utils.BytesToString(rezAsset.Data); | 803 | string xmlData = Utils.BytesToString(rezAsset.Data); |
804 | SceneObjectGroup group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData); | 804 | SceneObjectGroup group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData); |
805 | 805 | ||
806 | group.RootPart.AttachPoint = group.RootPart.Shape.State; | ||
807 | group.RootPart.AttachOffset = group.AbsolutePosition; | ||
808 | |||
806 | group.ResetIDs(); | 809 | group.ResetIDs(); |
807 | 810 | ||
808 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); | 811 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); |