Half of the compatibility is working. Login into a new region with

old data works. Teleport out of a new region with old data works.
Teleport into a new region with old data does not trigger the
necessary rebake.
This commit is contained in:
Master ScienceSim
2010-10-25 14:11:47 -07:00
parent 657cceb884
commit 6e58c3d563
4 changed files with 29 additions and 21 deletions

View File

@@ -368,15 +368,12 @@ namespace OpenSim.Framework
}
}
if (args["packed_appearance"] != null)
if (args.ContainsKey("packed_appearance") && (args["packed_appearance"].Type == OSDType.Map))
{
if (args["packed_appearance"].Type == OSDType.Map)
{
Appearance.Unpack((OSDMap)args["packed_appearance"]);
m_log.WarnFormat("[AGENTCIRCUITDATA] unpacked appearance");
}
else
m_log.WarnFormat("[AGENTCIRCUITDATA] packed_appearance is not a map:\n{0}",args["packed_appearance"].ToString());
Appearance.Unpack((OSDMap)args["packed_appearance"]);
// DEBUG ON
m_log.WarnFormat("[AGENTCIRCUITDATA] unpacked appearance");
// DEBUG OFF
}
// DEBUG ON
else