mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
* Change the signature of the agent set appearance callback to prevent unnecessary serialization/deserialization of TextureEntry objects and allow TextureEntry to be inspected for missing bakes
* Inspect incoming TextureEntry updates for bakes that do not exist on the simulator and request the missing textures * Properly handle appearance updates that do not have a TextureEntry set
This commit is contained in:
@@ -163,13 +163,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
{
|
||||
AvatarAppearance x = GetAppearance(p_cloneAppearanceFrom, p_scene);
|
||||
|
||||
List<byte> wearbyte = new List<byte>();
|
||||
for (int i = 0; i < x.VisualParams.Length; i++)
|
||||
{
|
||||
wearbyte.Add(x.VisualParams[i]);
|
||||
}
|
||||
|
||||
sp.SetAppearance(x.Texture.GetBytes(), wearbyte);
|
||||
sp.SetAppearance(x.Texture, (byte[])x.VisualParams.Clone());
|
||||
}
|
||||
|
||||
m_avatars.Add(npcAvatar.AgentId, npcAvatar);
|
||||
|
||||
Reference in New Issue
Block a user