From e0d092ec537a7187d3b5a367f27b834fccad778d Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Wed, 10 Sep 2008 00:19:36 +0000 Subject: Thanks, nlin, for a patch implementing persistence for "When Left Clicked" object property. Fix issue 2149. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index f778557..ffd7001 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -4772,6 +4772,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP } break; + case PacketType.ObjectClickAction: + ObjectClickActionPacket ocpacket = (ObjectClickActionPacket)Pack; + Scene tScene = (Scene)m_scene; + + foreach (ObjectClickActionPacket.ObjectDataBlock odata in ocpacket.ObjectData) + { + byte action = odata.ClickAction; + uint localId = odata.ObjectLocalID; + SceneObjectPart part = tScene.GetSceneObjectPart(localId); + part.ClickAction = action; + } + + break; + #endregion #region Inventory/Asset/Other related packets -- cgit v1.1