diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8cd0bf2..8fb94b0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3097,10 +3097,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3097 | ScenePresence sp = World.GetScenePresence(m_host.TaskInventory[invItemID].PermsGranter); | 3097 | ScenePresence sp = World.GetScenePresence(m_host.TaskInventory[invItemID].PermsGranter); |
3098 | if (sp != null) | 3098 | if (sp != null) |
3099 | client = sp.ControllingClient; | 3099 | client = sp.ControllingClient; |
3100 | |||
3100 | SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)target); | 3101 | SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)target); |
3102 | |||
3101 | if (targetPart.ParentGroup.RootPart.AttachmentPoint != 0) | 3103 | if (targetPart.ParentGroup.RootPart.AttachmentPoint != 0) |
3102 | return; // Fail silently if attached | 3104 | return; // Fail silently if attached |
3103 | SceneObjectGroup parentPrim = null, childPrim = null; | 3105 | SceneObjectGroup parentPrim = null, childPrim = null; |
3106 | |||
3104 | if (targetPart != null) | 3107 | if (targetPart != null) |
3105 | { | 3108 | { |
3106 | if (parent != 0) { | 3109 | if (parent != 0) { |
@@ -3118,10 +3121,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3118 | // if (uf != (Byte)0) | 3121 | // if (uf != (Byte)0) |
3119 | // parent.RootPart.UpdateFlag = uf; | 3122 | // parent.RootPart.UpdateFlag = uf; |
3120 | } | 3123 | } |
3124 | |||
3121 | parentPrim.TriggerScriptChangedEvent(Changed.LINK); | 3125 | parentPrim.TriggerScriptChangedEvent(Changed.LINK); |
3122 | parentPrim.RootPart.AddFlag(PrimFlags.CreateSelected); | 3126 | parentPrim.RootPart.AddFlag(PrimFlags.CreateSelected); |
3123 | parentPrim.HasGroupChanged = true; | 3127 | parentPrim.HasGroupChanged = true; |
3124 | parentPrim.ScheduleGroupForFullUpdate(); | 3128 | parentPrim.ScheduleGroupForFullUpdate(); |
3129 | |||
3125 | if (client != null) | 3130 | if (client != null) |
3126 | parentPrim.GetProperties(client); | 3131 | parentPrim.GetProperties(client); |
3127 | 3132 | ||