mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Thanks, nlin, for a patch implementing persistence for "When Left Clicked"
object property. Fix issue 2149.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user