diff options
author | Aleric Inglewood | 2013-08-04 19:19:11 +0200 |
---|---|---|
committer | teravus | 2013-09-22 21:10:01 -0500 |
commit | 2dc92e7de11086c7649d3ee0f8adc974efce6805 (patch) | |
tree | e69a633127525a5967ddadeef723a99f38e5d4aa /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | minor: Recomment out log message uncommented in previous cbdfe969 (diff) | |
download | opensim-SC_OLD-2dc92e7de11086c7649d3ee0f8adc974efce6805.zip opensim-SC_OLD-2dc92e7de11086c7649d3ee0f8adc974efce6805.tar.gz opensim-SC_OLD-2dc92e7de11086c7649d3ee0f8adc974efce6805.tar.bz2 opensim-SC_OLD-2dc92e7de11086c7649d3ee0f8adc974efce6805.tar.xz |
Preserve attachment point & position when attachment is rezzed in world
Patch taken from
http://opensimulator.org/mantis/view.php?id=4905
originally by Greg C.
Fixed to apply to r/23314 commit
ba9daf849e7c8db48e7c03e7cdedb77776b2052f
(cherry picked from commit 4ff9fbca441110cc2b93edc7286e0e9339e61cbe)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 69b5f43..4bebbe8 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2230,6 +2230,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
2230 | sourcePart.Inventory.RemoveInventoryItem(item.ItemID); | 2230 | sourcePart.Inventory.RemoveInventoryItem(item.ItemID); |
2231 | } | 2231 | } |
2232 | 2232 | ||
2233 | |||
2234 | if (group.IsAttachment == false && group.RootPart.Shape.State != 0) | ||
2235 | { | ||
2236 | group.RootPart.AttachedPos = group.AbsolutePosition; | ||
2237 | group.RootPart.Shape.LastAttachPoint = (byte)group.AttachmentPoint; | ||
2238 | } | ||
2239 | |||
2233 | group.FromPartID = sourcePart.UUID; | 2240 | group.FromPartID = sourcePart.UUID; |
2234 | AddNewSceneObject(group, true, pos, rot, vel); | 2241 | AddNewSceneObject(group, true, pos, rot, vel); |
2235 | 2242 | ||