From b7170215baf52d7a0704f5e6550b034b6cb33ae0 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 26 Dec 2007 04:36:28 +0000 Subject: [PATCH] * Patch by Melanie to fix CreateSelected --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index cbb50d7751..4f89dd0822 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1453,9 +1453,15 @@ namespace OpenSim.Region.Environment.Scenes { LLQuaternion lRot; lRot = RotationOffset; + clientFlags &= ~(uint)LLObject.ObjectFlags.CreateSelected; + if (remoteClient.AgentId == OwnerID) { - clientFlags &= ~(uint)LLObject.ObjectFlags.CreateSelected; + if ((uint)(m_flags & LLObject.ObjectFlags.CreateSelected) != 0) + { + clientFlags |= (uint)LLObject.ObjectFlags.CreateSelected; + m_flags &= ~LLObject.ObjectFlags.CreateSelected; + } }