From 031e1407615be4fe016e4185ef041eaafbc19e49 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 25 Jul 2008 10:13:26 +0000 Subject: [PATCH] From: Christopher Yeoh The LL Server sets the CreateSelected flag for a prim when sending a property update when objects are linked. The following patch gets OpenSim to do the same. --- OpenSim/Region/Environment/Scenes/InnerScene.cs | 1 + OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 7df70a0880..2b2e087c30 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs @@ -1364,6 +1364,7 @@ namespace OpenSim.Region.Environment.Scenes // We need to explicitly resend the newly link prim's object properties since no other actions // occur on link to invoke this elsewhere (such as object selection) + parenPrim.RootPart.AddFlag(LLObject.ObjectFlags.CreateSelected); parenPrim.TriggerScriptChangedEvent(Changed.LINK); if (client != null) parenPrim.GetProperties(client); diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 87e69f7c84..e982c35a6e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1756,6 +1756,7 @@ namespace OpenSim.Region.Environment.Scenes linkPart.LinkNum = m_parts.Count; linkPart.SetParent(this); + linkPart.AddFlag(LLObject.ObjectFlags.CreateSelected); //if (linkPart.PhysActor != null) //{