diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0134b03..0eee147 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2896,9 +2896,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2896 | 2896 | ||
2897 | ScenePresence presence = World.GetScenePresence(m_host.OwnerID); | 2897 | ScenePresence presence = World.GetScenePresence(m_host.OwnerID); |
2898 | 2898 | ||
2899 | m_ScriptEngine.World.AttachObject(presence.ControllingClient, | 2899 | IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule; |
2900 | grp.LocalId, (uint)attachment, Quaternion.Identity, | 2900 | if (attachmentsModule != null) |
2901 | Vector3.Zero, false); | 2901 | attachmentsModule.AttachObject( |
2902 | presence.ControllingClient, grp.LocalId, | ||
2903 | (uint)attachment, Quaternion.Identity, Vector3.Zero, false); | ||
2902 | } | 2904 | } |
2903 | } | 2905 | } |
2904 | 2906 | ||