remove duplication of textures, wearables and attachments on crossings.
receiver checks old method if it doesnt get packed appeareaceavinationmerge
parent
72a6bca033
commit
447fd0850a
|
@ -431,6 +431,8 @@ namespace OpenSim.Framework
|
||||||
// The code to pack textures, visuals, wearables and attachments
|
// The code to pack textures, visuals, wearables and attachments
|
||||||
// should be removed; packed appearance contains the full appearance
|
// should be removed; packed appearance contains the full appearance
|
||||||
// This is retained for backward compatibility only
|
// This is retained for backward compatibility only
|
||||||
|
|
||||||
|
/* then lets remove
|
||||||
if (Appearance.Texture != null)
|
if (Appearance.Texture != null)
|
||||||
{
|
{
|
||||||
byte[] rawtextures = Appearance.Texture.GetBytes();
|
byte[] rawtextures = Appearance.Texture.GetBytes();
|
||||||
|
@ -459,7 +461,7 @@ namespace OpenSim.Framework
|
||||||
args["attachments"] = attachs;
|
args["attachments"] = attachs;
|
||||||
}
|
}
|
||||||
// End of code to remove
|
// End of code to remove
|
||||||
|
*/
|
||||||
if ((Controllers != null) && (Controllers.Length > 0))
|
if ((Controllers != null) && (Controllers.Length > 0))
|
||||||
{
|
{
|
||||||
OSDArray controls = new OSDArray(Controllers.Length);
|
OSDArray controls = new OSDArray(Controllers.Length);
|
||||||
|
@ -647,6 +649,18 @@ namespace OpenSim.Framework
|
||||||
// AgentTextures[i++] = o.AsUUID();
|
// AgentTextures[i++] = o.AsUUID();
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
// packed_appearence should contain all appearance information
|
||||||
|
if (args.ContainsKey("packed_appearance") && (args["packed_appearance"]).Type == OSDType.Map)
|
||||||
|
{
|
||||||
|
m_log.WarnFormat("[CHILDAGENTDATAUPDATE] got packed appearance");
|
||||||
|
Appearance = new AvatarAppearance((OSDMap)args["packed_appearance"]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// if missing try the old pack method
|
||||||
|
m_log.WarnFormat("[CHILDAGENTDATAUPDATE] No packed appearance, checking old method");
|
||||||
|
|
||||||
Appearance = new AvatarAppearance();
|
Appearance = new AvatarAppearance();
|
||||||
|
|
||||||
// The code to unpack textures, visuals, wearables and attachments
|
// The code to unpack textures, visuals, wearables and attachments
|
||||||
|
@ -693,12 +707,13 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// end of code to remove
|
// end of code to remove
|
||||||
|
}
|
||||||
|
/* moved above
|
||||||
if (args.ContainsKey("packed_appearance") && (args["packed_appearance"]).Type == OSDType.Map)
|
if (args.ContainsKey("packed_appearance") && (args["packed_appearance"]).Type == OSDType.Map)
|
||||||
Appearance = new AvatarAppearance((OSDMap)args["packed_appearance"]);
|
Appearance = new AvatarAppearance((OSDMap)args["packed_appearance"]);
|
||||||
else
|
else
|
||||||
m_log.WarnFormat("[CHILDAGENTDATAUPDATE] No packed appearance");
|
m_log.WarnFormat("[CHILDAGENTDATAUPDATE] No packed appearance");
|
||||||
|
*/
|
||||||
if ((args["controllers"] != null) && (args["controllers"]).Type == OSDType.Array)
|
if ((args["controllers"] != null) && (args["controllers"]).Type == OSDType.Array)
|
||||||
{
|
{
|
||||||
OSDArray controls = (OSDArray)(args["controllers"]);
|
OSDArray controls = (OSDArray)(args["controllers"]);
|
||||||
|
|
Loading…
Reference in New Issue