diff options
author | Diva Canto | 2011-04-29 15:52:06 -0700 |
---|---|---|
committer | Diva Canto | 2011-04-29 15:52:06 -0700 |
commit | 0d49611f6db017da16b6099c440b6c1e2b2218b9 (patch) | |
tree | eb25beec8d2c8766e84956b9ba95c2a3fc046e85 /OpenSim/Region/Framework/Scenes | |
parent | Minor correction to yesterday's changes. Make normal prim crossing (no attach... (diff) | |
download | opensim-SC_OLD-0d49611f6db017da16b6099c440b6c1e2b2218b9.zip opensim-SC_OLD-0d49611f6db017da16b6099c440b6c1e2b2218b9.tar.gz opensim-SC_OLD-0d49611f6db017da16b6099c440b6c1e2b2218b9.tar.bz2 opensim-SC_OLD-0d49611f6db017da16b6099c440b6c1e2b2218b9.tar.xz |
Remove the scripts of the attachments in the departing region and recreate them if fail.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index fe4a7d1..9b9d9da 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3113,6 +3113,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3113 | ((SceneObjectGroup)clone).RootPart.IsAttachment = false; | 3113 | ((SceneObjectGroup)clone).RootPart.IsAttachment = false; |
3114 | cAgent.AttachmentObjects.Add(clone); | 3114 | cAgent.AttachmentObjects.Add(clone); |
3115 | cAgent.AttachmentObjectStates.Add(sog.GetStateSnapshot()); | 3115 | cAgent.AttachmentObjectStates.Add(sog.GetStateSnapshot()); |
3116 | // Let's remove the scripts of the original object here | ||
3117 | sog.RemoveScriptInstances(true); | ||
3116 | } | 3118 | } |
3117 | } | 3119 | } |
3118 | } | 3120 | } |