mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
0001199: [PATCH] Add support for default animations
From Melanie... Thanks Melanie! .
This commit is contained in:
@@ -96,6 +96,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
private byte[] m_channelVersion = Helpers.StringToField("OpenSimulator 0.5"); // Dummy value needed by libSL
|
||||
|
||||
private Dictionary<string, LLUUID> m_defaultAnimations = new Dictionary<string, LLUUID>();
|
||||
|
||||
|
||||
/* protected variables */
|
||||
|
||||
protected static Dictionary<PacketType, PacketMethod> PacketHandlers =
|
||||
@@ -326,6 +329,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
m_channelVersion = Helpers.StringToField(scene.GetSimulatorVersion());
|
||||
|
||||
InitDefaultAnimations();
|
||||
|
||||
|
||||
m_scene = scene;
|
||||
m_assetCache = assetCache;
|
||||
|
||||
@@ -3097,6 +3103,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
OutPacket(scriptQuestion, ThrottleOutPacketType.Task);
|
||||
}
|
||||
private void InitDefaultAnimations()
|
||||
{
|
||||
}
|
||||
|
||||
public LLUUID GetDefaultAnimation(string name)
|
||||
{
|
||||
if(m_defaultAnimations.ContainsKey(name))
|
||||
return m_defaultAnimations[name];
|
||||
return LLUUID.Zero;
|
||||
}
|
||||
|
||||
protected virtual bool Logout(IClientAPI client, Packet packet)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user