diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index f0d6916..80723fa 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -313,6 +313,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
313 | LLObject.ObjectFlags.ObjectMove | | 313 | LLObject.ObjectFlags.ObjectMove | |
314 | LLObject.ObjectFlags.AllowInventoryDrop | | 314 | LLObject.ObjectFlags.AllowInventoryDrop | |
315 | LLObject.ObjectFlags.ObjectTransfer | | 315 | LLObject.ObjectFlags.ObjectTransfer | |
316 | LLObject.ObjectFlags.CreateSelected | | ||
316 | LLObject.ObjectFlags.ObjectOwnerModify; | 317 | LLObject.ObjectFlags.ObjectOwnerModify; |
317 | 318 | ||
318 | ScheduleFullUpdate(); | 319 | ScheduleFullUpdate(); |
@@ -855,8 +856,24 @@ namespace OpenSim.Region.Environment.Scenes | |||
855 | { | 856 | { |
856 | LLQuaternion lRot; | 857 | LLQuaternion lRot; |
857 | lRot = RotationOffset; | 858 | lRot = RotationOffset; |
858 | 859 | uint clientFlags = ObjectFlags & ~(uint)LLObject.ObjectFlags.CreateSelected; | |
859 | remoteClient.SendPrimitiveToClient(m_regionHandle, 64096, LocalID, m_shape, lPos, ObjectFlags, m_uuid, | 860 | |
861 | List<ScenePresence> avatars=m_parentGroup.GetScenePresences(); | ||
862 | foreach(ScenePresence s in avatars) | ||
863 | { | ||
864 | if(s.m_uuid == OwnerID) | ||
865 | { | ||
866 | if(s.ControllingClient == remoteClient) | ||
867 | { | ||
868 | clientFlags = ObjectFlags; | ||
869 | m_flags &= ~LLObject.ObjectFlags.CreateSelected; | ||
870 | |||
871 | } | ||
872 | break; | ||
873 | } | ||
874 | } | ||
875 | |||
876 | remoteClient.SendPrimitiveToClient(m_regionHandle, 64096, LocalID, m_shape, lPos, clientFlags, m_uuid, | ||
860 | OwnerID, | 877 | OwnerID, |
861 | m_text, ParentID, m_particleSystem, lRot); | 878 | m_text, ParentID, m_particleSystem, lRot); |
862 | } | 879 | } |