mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Added ClickAction property to SceneObjectPart (and the relevant changes in IClientAPI so its used), so that the default click action (ie touch, sit, etc) can be set on a prim. Note: Sill need to handle the incoming packets that set this, from the client.
This commit is contained in:
@@ -352,6 +352,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
set { m_touchName = value; }
|
||||
}
|
||||
|
||||
private byte m_clickAction = 0;
|
||||
public byte ClickAction
|
||||
{
|
||||
get { return m_clickAction; }
|
||||
set
|
||||
{
|
||||
m_clickAction = value;
|
||||
this.ScheduleFullUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
protected PrimitiveBaseShape m_shape;
|
||||
|
||||
public PrimitiveBaseShape Shape
|
||||
@@ -384,6 +395,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
set { m_updateFlag = value; }
|
||||
}
|
||||
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
@@ -1096,7 +1108,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
byte[] color = new byte[] { m_color.R, m_color.G, m_color.B, m_color.A };
|
||||
remoteClient.SendPrimitiveToClient(m_regionHandle, 64096, LocalID, m_shape, lPos, clientFlags, m_uuid,
|
||||
OwnerID,
|
||||
m_text, color, ParentID, m_particleSystem, lRot);
|
||||
m_text, color, ParentID, m_particleSystem, lRot, m_clickAction);
|
||||
}
|
||||
|
||||
/// Terse updates
|
||||
|
||||
Reference in New Issue
Block a user